We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In our project, we have multi environment configs, each of them has a appsettings file.for example:
When I change the default ASPNETCORE_ENVIRONMENT to custom name, like "2020test" the MudBlazor got some error after start the project.
os: win11 IDE: VS2022 Version 17.0.0 Preview 4.1 local dotnet version : 5.0 latest /6.0 RC2 local MudBlazor version: 5.1.5 + lastest rc
Create a startup Blazor Server project using the MudBlazor template
Open the launch setting file, change the env name from Development to a custome env
Start the server project, when the browser launch, the UI is a crazy large icon!
some static file was 404 when start not as a dev environment.
The text was updated successfully, but these errors were encountered:
You need to include: webBuilder.UseStaticWebAssets(); in your program.cs. Then it should work
webBuilder.UseStaticWebAssets();
program.cs
Sorry, something went wrong.
We should also add this to the templates
The PR was closed, but this issue persists. Also for WASM when hosted.
PR created:
#133
Add StaticWebAssests loader to prevent 404 when using a different ASP…
62e13c6
…NETCORE_ENVIRONMENT (#44, #133)
Successfully merging a pull request may close this issue.
Bug desc
In our project, we have multi environment configs, each of them has a appsettings file.for example:
When I change the default ASPNETCORE_ENVIRONMENT to custom name, like "2020test" the MudBlazor got some error after start the project.
![image](https://user-images.githubusercontent.com/3945919/139174852-97cf3380-b697-473f-89f9-5388380f7520.png)
My Configs
os: win11
IDE: VS2022 Version 17.0.0 Preview 4.1
local dotnet version : 5.0 latest /6.0 RC2
local MudBlazor version: 5.1.5 + lastest rc
How to reproduce
Create a startup Blazor Server project using the MudBlazor template
![image](https://user-images.githubusercontent.com/3945919/139173354-6bff6323-4165-4ac1-b361-f54a7c593b85.png)
Open the launch setting file, change the env name from Development to a custome env
![image](https://user-images.githubusercontent.com/3945919/139173509-bc046aec-3d39-467d-8a15-490cb2343a24.png)
Start the server project, when the browser launch, the UI is a crazy large icon!
![image](https://user-images.githubusercontent.com/3945919/139173653-b563a73b-cf86-4ba8-a1af-18114558fc9b.png)
some static file was 404 when start not as a dev environment.
![image](https://user-images.githubusercontent.com/3945919/139173790-9e834235-4b45-48c9-86ce-5abd08942ad2.png)
The text was updated successfully, but these errors were encountered: