The Wayback Machine - https://web.archive.org/web/20220118094111/https://github.com/dotnet/aspnetcore/issues/39596
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

Blazor Server app not find static file when changing environment from Development #39596

Open
Kuznetsov-Alexey opened this issue Jan 18, 2022 · 0 comments

Comments

@Kuznetsov-Alexey
Copy link

@Kuznetsov-Alexey Kuznetsov-Alexey commented Jan 18, 2022

Is there an existing issue for this?
Issue with environment's name, but linked to a hot reload supporting in Blazor WebAssembly app.
#39269

Describe the bug
When launching application on local machine with any Environment name different from "Development", application can't find "{name of startup project}.styles.css" file and shows page without any styles.

Expected behavior
Loading of static files should not depend on the environment's name.
We have a situation, when need in different names for environments during development. But now this possibility is not available.

Steps to reproduce

  1. Create new Blazor Server application.
  2. Change ASPNETCORE_ENVIRONMENT in the project's launchSettings.json from "Development" to anything else.
  3. Start application via changed profile.

.NET Version
6.0.100

Solution with reproduced bug
TestEnvironmentBlazorApp.zip

Additional information
Application can not find static files from Razor class libraries when environment name is different from "Development".

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

Successfully merging a pull request may close this issue.

None yet
1 participant