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

Add supprot for .NET 9 Static assets to DotVVM resources #1911

Open
holajan opened this issue Mar 3, 2025 · 0 comments
Open

Add supprot for .NET 9 Static assets to DotVVM resources #1911

holajan opened this issue Mar 3, 2025 · 0 comments

Comments

@holajan
Copy link
Contributor

holajan commented Mar 3, 2025

In .NET 9 is new feature Static assets.

You can replace UseStaticFiles to MapStaticAssets. But it is only part of this feature.
The main goal is to use fingerprinting and generated .gz and .br assets (with .staticwebassets.endpoints.json in debug enviroment).

You can use new @assets property (In Blazor apps) or link tag helpers (MVC & Razor Pages apps) to resolve the assets fingerprinted file names and <ImportMap /> component or <script type="importmap"></script> for JavaScript modules. There is no such functionality for DotVVM apps.
It needs to be added in DotVVM resources registration in UrlResourceLocation or similar class.

Please add this support.

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

No branches or pull requests

1 participant