REGRESSION INFO: New feature on 11.0 P4
INSTALL STEPS:
- Clean Win 11 25h2 x64
- Install latest 11.0 Preview 5 build
- Apply Feed
Platform
Repro Steps
-
Open up a normal Command Prompt (Terminal)
-
Create a Blazor WebAssembly app
mkdir MyBlazorApp
cd MyBlazorApp
dotnet new sln
dotnet new blazorwasm -o MyBlazorApp
dotnet sln add MyBlazorApp/MyBlazorApp.csproj
-
Create a Blazor WebAssembly Service Defaults
dotnet new blazor-wasm-servicedefaults -o MyBlazorApp.ServiceDefaults
-
Add reference the library from the Blazor WebAssembly client.
dotnet sln add MyBlazorApp.ServiceDefaults\MyBlazorApp.ServiceDefaults.csproj
dotnet add MyBlazorApp/MyBlazorApp.csproj reference MyBlazorApp.ServiceDefaults/MyBlazorApp.ServiceDefaults.csproj
-
Add the code in program.cs file of Blazor WebAssembly client app
using MyBlazorApp;
builder.AddBlazorClientServiceDefaults();
-
Run the project
cd MyBlazorApp
dotnet run
Note
- This issue also repro when using: Aspire AppHost + Blazor WebAssembly (standalone) + Blazor WebAssembly ServiceDefaults.
- This issue does not repro when only configuring logging:
builder.Logging.SetMinimumLevel(LogLevel.Information);
Actual Result
The project fails to load with error CircularDependencyException.

blazor.webassembly.uv9pzyktbz.js:1 ManagedError: AggregateException_ctor_DefaultMessage (CircularDependencyException, Microsoft.Extensions.Logging.ILoggerFactory)
callEntryPoint @ blazor.webassembly.uv9pzyktbz.js:1
REGRESSION INFO: New feature on 11.0 P4
INSTALL STEPS:
Platform
Repro Steps
Open up a normal Command Prompt (Terminal)
Create a Blazor WebAssembly app
Create a Blazor WebAssembly Service Defaults
dotnet new blazor-wasm-servicedefaults -o MyBlazorApp.ServiceDefaultsAdd reference the library from the Blazor WebAssembly client.
Add the code in program.cs file of Blazor WebAssembly client app
using MyBlazorApp;builder.AddBlazorClientServiceDefaults();Run the project
Note
builder.Logging.SetMinimumLevel(LogLevel.Information);Actual Result

The project fails to load with error CircularDependencyException.