Skip to content

EMCC command failing after .NET 10 update #121783

@williambuchanan2

Description

@williambuchanan2

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

Metadata

Metadata

Assignees

Labels

arch-wasmWebAssembly architecturearea-Build-monotracking-external-issueThe issue is caused by external problem (e.g. OS) - nothing we can do to fix it directly

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions