Git Product home page Git Product logo

Comments (4)

JacksonHamner avatar JacksonHamner commented on June 14, 2024

We are seeing this in our project too, any idea what might be causing this?

from duende.identityserver.admin.

selangley-wa avatar selangley-wa commented on June 14, 2024

It appears to be something strange with how the staticwebassets for the Skoruba.Duende.IdentityServer.Admin.UI NuGet package are handled / processed when running in a non-development environment.

For my custom Duende.IdentityServer.Admin project generated using the template, if I:

  1. Move the directory:

{$USERPROFILE}.nuget\packages\skoruba.duende.identityserver.admin.ui\1.1.0\staticwebassets

to {$MyTemplateGeneratedProjectName}\src{$MyTemplateGeneratedProjectName}.Admin\wwwroot

  1. Remove the importing of the staticwebassests as a dependency for the Skoruba.Duende.IdentityServer.Admin.UI NuGet package, which I achieved in a "hacky" way by deleting the line:

from the file:

{$USERPROFILE}.nuget\packages\skoruba.duende.identityserver.admin.ui\1.1.0\build\Skoruba.Duende.IdentityServer.Admin.UI.props

  1. Finally, rebuild my custom Duende.IdentityServer.Admin project.

Then the styles for the Admin project are found successfully when running in an non-development configuration.

Perhaps the manner in which the staticwebassets are being packaged can be improved upon?

The only real documentation I found from Microsoft on this is the following blog post:

https://devblogs.microsoft.com/dotnet/build-client-web-assets-for-your-razor-class-library/

and this documentation page:

https://docs.microsoft.com/en-us/aspnet/core/razor-pages/ui-class?view=aspnetcore-6.0&tabs=visual-studio

from duende.identityserver.admin.

Diponchik avatar Diponchik commented on June 14, 2024

Thank you @selangley-wa. Just added webBuilder.UseStaticWebAssets(); to Programs.cs file for Duende.IdentityServer.Admin project and it works!

from duende.identityserver.admin.

skoruba avatar skoruba commented on June 14, 2024

Thank you for your PR, I will merge, sorry for the delay, I was busy.

from duende.identityserver.admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.