Version Used: .NET 10
Steps to Reproduce:
- Create a new project with the ".NET MAUI Blazor Hybrid and WebApp" template and selecting
Interactive Auto render mode.
- In the .Web app
Program.cs, replace MapStaticAssets with UseStaticFiles.
- In
App.razor, replace the assets dictionary entry for blazor.web.js with a simple script tag: <script src="_framework/blazor.web.js"></script>.
Expected Behavior:
Assets, including the blazor bootstrap file, should be served as they were in .NET 9. As is documented in ASP.NET Core Blazor static files and Static files in ASP.NET Core, there are valid reasons to use this setup.
Actual Behavior:
Error Failed to load resource: the server responded with a status of 404 () in the browser when loading https://localhost:XXXX/_framework/blazor.web.js, and thus no interactivity (counter button).
Version Used: .NET 10
Steps to Reproduce:
Interactive Autorender mode.Program.cs, replaceMapStaticAssetswithUseStaticFiles.App.razor, replace the assets dictionary entry forblazor.web.jswith a simple script tag:<script src="_framework/blazor.web.js"></script>.Expected Behavior:
Assets, including the blazor bootstrap file, should be served as they were in .NET 9. As is documented in ASP.NET Core Blazor static files and Static files in ASP.NET Core, there are valid reasons to use this setup.
Actual Behavior:
Error
Failed to load resource: the server responded with a status of 404 ()in the browser when loadinghttps://localhost:XXXX/_framework/blazor.web.js, and thus no interactivity (counter button).