-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
I have a blazor wasm application. I have just tried to update to .NET 10 and I get the 2 errors below when trying to build:
The command "emcc "@C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\10.0.0\runtimes\browser-wasm\native\src\emcc-default.rsp" -msimd128 "@C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\10.0.0\runtimes\browser-wasm\native\src\emcc-link.rsp" "@C:\Ws\Repo\DEV\PDS\NetCore\Client\PDS.Web\Site\obj\Debug\net10.0\wasm\for-build\emcc-link.rsp"" exited with code 1.
/NODEFAULTLIB:MSVCRT: No such file or directory ("/NODEFAULTLIB:MSVCRT" was expected to be an input file, based on the commandline arguments provided)
Builds fine in .NET 9.
When I double click it takes me to BrowserWasmApp.targets at this line:
<Exec Command='emcc "@$(_WasmDefaultFlagsRsp)" $(_WasmDefaultFlags) "@$(_WasmDefaultLinkFlagsRsp)" "@$(_WasmLinkRsp)"' EnvironmentVariables="@(EmscriptenEnvVars)" ConsoleToMSBuild="true">
<Output TaskParameter="ConsoleOutput" PropertyName="_EmccLinkStepConsoleOutput" />
<Output TaskParameter="ExitCode" PropertyName="_EmccLinkStepExitCode" />
</Exec>
At this point i'm dead in the water so some help would be appreciated!
Any thoughts?
Expected Behavior
No build error
Steps To Reproduce
Update Blazor app to .NET 10
Exceptions (if any)
The command "emcc "@C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\10.0.0\runtimes\browser-wasm\native\src\emcc-default.rsp" -msimd128 "@C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Runtime.Mono.browser-wasm\10.0.0\runtimes\browser-wasm\native\src\emcc-link.rsp" "@C:\Ws\Repo\DEV\PDS\NetCore\Client\PDS.Web\Site\obj\Debug\net10.0\wasm\for-build\emcc-link.rsp"" exited with code 1.
/NODEFAULTLIB:MSVCRT: No such file or directory ("/NODEFAULTLIB:MSVCRT" was expected to be an input file, based on the commandline arguments provided)
.NET Version
10
Anything else?
No response