Changing Environment in Blazor 5.0 causes CSS not to load? #28174
Labels
area-blazor
Includes: Blazor, Razor Components
feature-blazor-wasm
This issue is related to and / or impacts Blazor WebAssembly
✔️ Resolution: Answered
Resolved because the question asked by the original author has been answered.
question
Status: Resolved
Describe the bug
Changing the Environment setting in Blazor 5.0 causes the CSS loading to fail
Did these tests after trying to help solve this StackOverflow issue
To Reproduce
appsettings.Development.json
toappsettings.Live.json
launchSettings.json
which is a copy of the development one with"ASPNETCORE_ENVIRONMENT": "Live"
<link href="MyAppName.styles.css" rel="stylesheet" />
Sample repo: https://github.com/conficient/Blazor50cssBug
Further technical details
ASP.NET Core version: 5.0.100 (I ran a repair on the SDK install just before testing)
Included the output of
dotnet --info
at the endThe IDE: Vs2019 v 16.9.0 Preview 1.0, running on Windows 10
The text was updated successfully, but these errors were encountered: