Skip to content

"A fatal error has occurred loading the metadata for 'System.Private.CoreLib.dll' and debugging needs to be terminated." when debugging 11.0 WASM browser project #65122

Description

@jinzhao1127

REGRESSION INFO: Works well on 10.0/9.0/8.0

INSTALL STEPS:

  1. Clean Win11 x64 25h2 ENU
  2. Install the VS 18.3
  3. Install the .NET 11.0 Preview 1 SDK: https://aka.ms/dotnet/11.0.1xx/daily/dotnet-sdk-win-x64.exe
  4. Add feed

Platform

  • Windows
  • macOS
  • Linux

Repro Steps

  1. Install WebAssembly Browser App template via command:
    dotnet workload install wasm-experimental
  2. Run dotnet new wasmbrowser -o WasmBrowser to create a wasm browser project
  3. Open the project in VS
  4. Run the project (F5)

Actual Result
Failed to run the project with error "A fatal error has occurred loading the metadata for 'System.Private.CoreLib.dll'"

Image

Note

  1. This issue does not repro on Ctrl + F5
  2. This issue does not reproduce on 10.0/9.0/8.0 wasm browser project.
  3. This issue does not repro on Blazor web project.

Error Log


A fatal error has occurred loading the metadata for 'System.Private.CoreLib.dll' and debugging needs to be terminated. The operation failed because the debugger could not get the metadata.

Metadata

Metadata

Labels

area-blazorIncludes: Blazor, Razor Componentsfeature-blazor-debuggingThis issue is related to debugging of Blazor WebAssembly apps

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions