Skip to content

Standalone Blazor WebAssembly app log output is very verbose on .NET 11 Preview 5 #66879

@danroth27

Description

@danroth27

Is there an existing issue for this?

  • I have searched the existing issues

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

  1. Install the .NET 11 Preview 5 SDK (11.0.100-preview.5.26272.118).
  2. dotnet new blazorwasm -o WasmTest
  3. cd WasmTest
  4. dotnet run
  5. Open http://localhost:<port>/ in a browser.
  6. 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

Metadata

Metadata

Assignees

Labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions