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] Provide a better error message when an asset is not found because the environment is Production and the app has not been published. #57449

Closed
javiercn opened this issue Aug 21, 2024 · 3 comments · Fixed by #57671
Assignees
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one
Milestone

Comments

@javiercn
Copy link
Member

No description provided.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label Aug 21, 2024
@SteveSandersonMS
Copy link
Member

Isn't the issue when we're running in Production, not development? I thought we'd need to detect the case where, in Production, the SWA files aren't present on disk. Or am I misinterpreting?

@javiercn javiercn changed the title [Blazor] Provide a better error message when we detect that static web assets are not enabled during development. [Blazor] Provide a better error message when an asset is not found because the environment is Production and the app has not been published. Aug 21, 2024
@javiercn
Copy link
Member Author

@SteveSandersonMS I tried to clarify things a bit.

@MackinnonBuck MackinnonBuck added this to the .NET 10 Planning milestone Aug 22, 2024
@MackinnonBuck MackinnonBuck added the enhancement This issue represents an ask for new feature or an enhancement to an existing one label Aug 22, 2024
@javiercn javiercn self-assigned this Sep 2, 2024
@javiercn javiercn linked a pull request Sep 2, 2024 that will close this issue
@javiercn
Copy link
Member Author

javiercn commented Sep 4, 2024

image

This now produces the following warning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants