Skip to content

[WebToolsE2E] Blazor WebAssembly Standalone App Fails to Launch in VS Code with CoreCLR Startup Failure and Missing hostpolicy.dll #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.152.10]
  • V3 Sept prerelease C# Dev Kit: [3.33.195]

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

Note:

  1. In SDK 10.0.400, the first project will run successfully, however the succeeding WASM project will encounter the issue

ACTUAL
Project will not run and will encounter the following 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

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions