C
C#•2mo ago
Dongle

(SOLVED) dotnet publish complains about missing Emscripten

Running dotnet publish -r browser-wasm for my WASM app causes a build error saying that Emscripten doesn't exist on my machine, however the wasm-tools workload is installed using both dotnet workload and Visual Studio Installer.
2 Replies
Dongle
DongleOP•2mo ago
Full error message
C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\9.0.0-rc.2.24473.5\Sdk\BrowserWasmApp.targets(236,5): error : Emscripten from the workload is missing some paths: $(EmscriptenSdkToolsPath)= . Emscripten SDK is required for building native files.
C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\9.0.0-rc.2.24473.5\Sdk\BrowserWasmApp.targets(236,5): error : Emscripten from the workload is missing some paths: $(EmscriptenSdkToolsPath)= . Emscripten SDK is required for building native files.
okay dotnet workload repair wasm-tools fixed it.
felsokning
felsokning•5w ago
Don't forget to mark it as solved! 😃
Want results from more Discord servers?
Add your server