You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WebAssembly Browser App project fails to run #67236
When I try to dotnet run a WebAssembly Browser App I get:
A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'C:\Users\WDAGUtilityAccount\Desktop\WasmBrowserApp\bin\Debug\net7.0\browser-wasm'.
Presumably this is because the app is intended to be published and run in a browser, but there should be some sort of dev experience for running the app locally.
Reproduction Steps
Install .NET 7 Preview 2
dotnet workload install wasm-tools
dotnet new wasmbrowser
dotnet run
Expected behavior
App successfully builds and runs
Actual behavior
C:\Users\WDAGUtilityAccount\Desktop\WasmBrowserApp>dotnet run
A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'C:\Users\WDAGUtilityAccount\Desktop\WasmBrowserApp\bin\Debug\net7.0\browser-wasm'.
Failed to run as a self-contained app.
The application was run as a self-contained app because 'C:\Users\WDAGUtilityAccount\Desktop\WasmBrowserApp\bin\Debug\net7.0\browser-wasm\browser.runtimeconfig.json' did not specify a framework.
If this should be a framework-dependent app, specify the appropriate framework in 'C:\Users\WDAGUtilityAccount\Desktop\WasmBrowserApp\bin\Debug\net7.0\browser-wasm\browser.runtimeconfig.json'.
Activity
[wasm] First attempt at a wasm app host (#68696)