Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UseStaticWebAssets() on webBuilder in Program.cs to prevent web asset… #64

Closed
wants to merge 1 commit into from

Conversation

psijkof
Copy link
Contributor

@psijkof psijkof commented Nov 11, 2021

…s not being loaded in environments other than Development

…s not being loaded in environments other than Development
@JonBunator
Copy link
Member

JonBunator commented Nov 11, 2021

Thanks for the PR!
Have you tested it? Is it working now?
What about wasm-hosted? Is it needed there as well?

@Garderoben
Copy link
Member

@psijkof i just updated the templates to .NET 6 and .NET 6 style projects, is this still a issue with them?

@psijkof
Copy link
Contributor Author

psijkof commented Apr 26, 2022

Yes, with Blazor Server there is still that issue.

We need to add a line, after creating the builder:

StaticWebAssetsLoader.UseStaticWebAssets(builder.Environment, builder.Configuration);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: starup error when My ASPNETCORE_ENVIRONMENT is not setting to Development
3 participants