[Static Assets] Improve development experience by javiercn · Pull Request #57671 · dotnet/aspnetcore (original) (raw)

mkArtakMSFT pushed a commit that referenced this pull request

Sep 10, 2024

@github-actions

Backport of #57671 to release/9.0

/cc @javiercn

[Static Assets] Improve development experience

Fixes an issue when running a published app on Development and provides a better error when static web assets are not enabled during development

Description

Customer Impact

Regression?

8.0 and earlier, the published output was runnable in Development environment. For example in Docker containers regular mode (how the issue was found).

Risk

The changes uses information that we produce during the build (Build and Publish) to differentiate between the two scenarios and disable the development functionality for the published output and provide a better error message when static web assets are not enabled during development.

Verification

Packaging changes reviewed?


When servicing release/2.1