Blazor app is not starting when host environment name is changed from Development #43110
Closed
1 task done
Labels
area-blazor
Includes: Blazor, Razor Components
✔️ Resolution: Answered
Resolved because the question asked by the original author has been answered.
question
Status: Resolved
Is there an existing issue for this?
Describe the bug
The problem is that
index.html
file resides in Blazor project.There's an API which processes
.staticwebassets.runtime.json
file, so static assets are served correctly when running not published app withdotnet run
.But default app builder uses it only for dev environment.
If I add this call, Blazor works again (with debug mode, though, but you already have tickets for this).
Expected Behavior
I'd propose default templates (and docs as well) contain a commented section with the explanation that this call must be used for any other environment:
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
6.0.7
Anything else?
No response
The text was updated successfully, but these errors were encountered: