-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Open
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-Build-monoos-browserBrowser variant of arch-wasmBrowser variant of arch-wasm
Milestone
Description
Description
If you have a Blazor WebAssembly app with WasmEnableThreads=true, and then change it to false, the build output is corrupted and won't work until you delete bin/obj and build again.
Reproduction Steps
- Create a .NET 9 Blazor WebAssembly app with WasmEnableThreads=true. Make sure you set this flag before you build for the first time.
- Run it from VS with Ctrl+F5 and observe it working
- Change WasmEnableThreads to false
- Ctrl+F5 again
Expected behavior
It should work in single-threaded mode
Actual behavior
It fails with:
Regression?
No
Known Workarounds
Delete bin
& obj
folders
(which unfortunately is not something we can expect developers to do in reality)
Configuration
.NET 9 WebAssembly
Other information
No response
Metadata
Metadata
Assignees
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-Build-monoos-browserBrowser variant of arch-wasmBrowser variant of arch-wasm