-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blazor WASM: BrowserDebugHost.dll running from DevServer is missing roll-forward runtime policy #88391
Comments
Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov Issue DetailsDescriptionWhen the default standalone Blazor WebAssembly project is starting, it's hosted using DevServer. Then, DevServer starts framework-dependent Reproduction Steps
A preconfigured project can be found here. Expected behaviorThe app is running correctly, debugging is completely working as usual. Actual behaviorThe app starts, but debugging is completely broken, with a lot of exceptions in the console.
Regression?No response Known WorkaroundsSince we can't control the process creation process for BrowserDebugHost.dll in DevServer, the only available option is to set the environment variable for DevServer and let it propagate to a child process with BrowserDebugHost.dll. So Options are from here. Configuration
Other informationA possible fix for such an issue is to add
Or using a project file:
|
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsDescriptionWhen the default standalone Blazor WebAssembly project is starting, it's hosted using DevServer. Then, DevServer starts framework-dependent Reproduction Steps
A preconfigured project can be found here. Expected behaviorThe app is running correctly, debugging is completely working as usual. Actual behaviorThe app starts, but debugging is completely broken, with a lot of exceptions in the console.
Regression?No response Known WorkaroundsSince we can't control the process creation process for BrowserDebugHost.dll in DevServer, the only available option is to set the environment variable for DevServer and let it propagate to a child process with BrowserDebugHost.dll. So Options are from here. Configuration
Other informationA possible fix for such an issue is to add
Or using a project file:
|
Thanks! |
Description
When the default standalone Blazor WebAssembly project is starting, it's hosted using DevServer. Then, DevServer starts framework-dependent
BrowserDebugHost.dll
when it receives/debug/ws-proxy?...
request. But, unlike DevServer itself,BrowserDebugHost.dll
is missing configuration to roll forward on available runtime versions. This leads to situations when the user is able to start the application itself usingdotnet run
, but DevServer runsBrowserDebugHost
usingdotnet exec
, which requires a specific runtime version by default.Reproduction Steps
dotnet new blazorwasm -n TestApp1
net7.0
tonet6.0
7.0.8
to6.0.19
dotnet build
A preconfigured project can be found here.
Expected behavior
The app is running correctly, debugging is completely working as usual.
Actual behavior
The app starts, but debugging is completely broken, with a lot of exceptions in the console.
Regression?
No response
Known Workarounds
Since we can't control the process creation process for BrowserDebugHost.dll in DevServer, the only available option is to set the environment variable for DevServer and let it propagate to a child process with BrowserDebugHost.dll.
So
DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX =2
orDOTNET_ROLL_FORWARD=Major
should be used.Options are from here.
Configuration
Other information
A possible fix for such an issue is to add
runtimeconfig.template.json
for theBrowserDebugHost
project itself, with a pre-configured roll-forward policy:Or using a project file:
The text was updated successfully, but these errors were encountered: