Is there an existing issue for this?
Describe the bug
When I create a new standalone Blazor WebAssembly app on .NET 11 Preview 5 (dotnet new blazorwasm) and run it (dotnet run / dotnet watch / F5 in Visual Studio), the console produces a very large volume of log output compared to the same scenario on .NET 10. A single app load emits multiple Information-level lines per HTTP request through the Microsoft.AspNetCore.Hosting.Diagnostics, Microsoft.AspNetCore.Routing.EndpointMiddleware, and Microsoft.AspNetCore.StaticAssets.StaticAssetsInvoker categories. Because a Blazor WebAssembly boot pulls many assets, this results in hundreds of log lines for a single page load.
The equivalent standalone Blazor WebAssembly app on .NET 10 starts up with only a handful of log lines and stays quiet during normal browsing.
Expected Behavior
A freshly created standalone Blazor WebAssembly app should have a console log volume comparable to the .NET 10 experience — roughly: startup banner, listening URL, hosting environment, content root, and not much else during normal dev-time browsing.
Steps To Reproduce
- Install the .NET 11 Preview 5 SDK (
11.0.100-preview.5.26272.118).
dotnet new blazorwasm -o WasmTest
cd WasmTest
dotnet run
- Open
http://localhost:<port>/ in a browser.
- Observe the console output.
Per-request output (one example request, repeated for every asset):
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://localhost:5000/ - - -
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
Executing endpoint ''Microsoft.AspNetCore.Routing.RouteEndpoint''
info: Microsoft.AspNetCore.StaticAssets.StaticAssetsInvoker[2]
Sending file. Request path: ''{**fallback:nonfile}''. Physical path: ''...\obj\Debug\net11.0\compressed\...gz''
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
Executed endpoint ''Microsoft.AspNetCore.Routing.RouteEndpoint''
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished HTTP/1.1 GET http://localhost:5000/ - 200 1376 text/html 302.9165ms
Exceptions (if any)
None.
.NET Version
11.0.100-preview.5.26272.118
Anything else?
- OS: Windows 11
- Template:
dotnet new blazorwasm (standalone)
- Reproduces with
dotnet run, dotnet watch, and Visual Studio Insiders F5
- Same template on .NET 10 (
net10.0) is significantly quieter
Is there an existing issue for this?
Describe the bug
When I create a new standalone Blazor WebAssembly app on .NET 11 Preview 5 (
dotnet new blazorwasm) and run it (dotnet run/dotnet watch/ F5 in Visual Studio), the console produces a very large volume of log output compared to the same scenario on .NET 10. A single app load emits multiple Information-level lines per HTTP request through theMicrosoft.AspNetCore.Hosting.Diagnostics,Microsoft.AspNetCore.Routing.EndpointMiddleware, andMicrosoft.AspNetCore.StaticAssets.StaticAssetsInvokercategories. Because a Blazor WebAssembly boot pulls many assets, this results in hundreds of log lines for a single page load.The equivalent standalone Blazor WebAssembly app on .NET 10 starts up with only a handful of log lines and stays quiet during normal browsing.
Expected Behavior
A freshly created standalone Blazor WebAssembly app should have a console log volume comparable to the .NET 10 experience — roughly: startup banner, listening URL, hosting environment, content root, and not much else during normal dev-time browsing.
Steps To Reproduce
11.0.100-preview.5.26272.118).dotnet new blazorwasm -o WasmTestcd WasmTestdotnet runhttp://localhost:<port>/in a browser.Per-request output (one example request, repeated for every asset):
Exceptions (if any)
None.
.NET Version
11.0.100-preview.5.26272.118
Anything else?
dotnet new blazorwasm(standalone)dotnet run,dotnet watch, and Visual Studio Insiders F5net10.0) is significantly quieter