The Blazor Web App project in the .NET MAUI Blazor Hybrid and Web App template is still using the older static files middleware. It should be updated to use the new static web assets support in .NET 9 (MapStaticAssets & friends) to match the Blazor Web App template.
Steps to Reproduce
Create a .NET MAUI Blazor Hybrid and Web App project
Look at Program.cs in the Blazor Web App project
Expected: Uses MapStaticAssets() and friends
Actual: Uses UseStaticFiles()
Link to public reproduction project repository
No response
Version with bug
9.0.0-rc.2.24503.2
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Other (Tizen, Linux, etc. not supported by Microsoft directly)
Description
The Blazor Web App project in the .NET MAUI Blazor Hybrid and Web App template is still using the older static files middleware. It should be updated to use the new static web assets support in .NET 9 (
MapStaticAssets
& friends) to match the Blazor Web App template.Steps to Reproduce
Expected: Uses
MapStaticAssets()
and friends Actual: UsesUseStaticFiles()
Link to public reproduction project repository
No response
Version with bug
9.0.0-rc.2.24503.2
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Other (Tizen, Linux, etc. not supported by Microsoft directly)
Affected platform versions
Web
Did you find any workaround?
No response
Relevant log output
No response