Skip to content

[WebToolsE2E] Subsequent Blazor WebAssembly Standalone projects fail to launch after first successful debug session #3464

Description

@joniel-bolocon

REGRESSION INFO: In May Prerelease 10 (C# Dev Kit 3.31.199 and C# 2.149.34) #3366 will be encountered

INSTALL STEPS

  • OS: windows x64
  • Install the SDK 10.0.401
  • Install VS Code insiders - 1.137.0
  • V3 Sept prerelease C#: 2.151.27
  • V3 Sept prerelease C# DK: 3.31.218

REPRO STEPS

  1. Make sure enable "[Experimental] Enables C# Hot Reload while debugging"
  2. Open VS Code > Create .NET Project > Blazor WebAssembly Standalone App
  3. Build project successfully. > F5 to run the project
  4. Verify the project runs successfully > Stop the project > Close all VS Code programs
  5. Open again VS Code > Create .NET Project > Blazor WebAssembly Standalone App
  6. Build project successfully. > F5 to run the project

ACTUAL
After running the first project successfully, the succeeding Blazor WebAssembly Standalone App projects won't run successfully and will encounter the following errors/warnings:

Run via "Start new Instance"

Image

Logs:

The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core.

Run via "Start without Debugging"

Image Logs:
A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'C:\Users\v-jbolocon\BlazorApp3\BlazorApp3\bin\Debug\net10.0\'.
Failed to run as a self-contained app.
  - The application was run as a self-contained app because 'C:\Users\v-jbolocon\BlazorApp3\BlazorApp3\bin\Debug\net10.0\BlazorApp3.runtimeconfig.json' did not specify a framework.
  - If this should be a framework-dependent app, specify the appropriate framework in 'C:\Users\v-jbolocon\BlazorApp3\BlazorApp3\bin\Debug\net10.0\BlazorApp3.runtimeconfig.json'.

EXPECTED
Blazor WebAssembly Standalone App templates will consistently run successfully

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions