Skip to content

Emcc build error after upgrading Blazor Wasm app to .NET 10 #121843

Closed as duplicate

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[severity:I'm unable to use this version] [regression] [worked-in:Insiders 11218.70]
I have a blazor wasm app which works fine in .NET 9 but does not build in .NET 10. I get the below 2 errors:

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)

When I double click the error it takes me to BrowserWasmApp.targets line 522:

    <Exec Command='emcc "@$(_WasmDefaultFlagsRsp)" $(_WasmDefaultFlags) "@$(_WasmDefaultLinkFlagsRsp)" "@$(_WasmLinkRsp)"' EnvironmentVariables="@(EmscriptenEnvVars)" ConsoleToMSBuild="true">
      <Output TaskParameter="ConsoleOutput" PropertyName="_EmccLinkStepConsoleOutput" />
      <Output TaskParameter="ExitCode" PropertyName="_EmccLinkStepExitCode" />
    </Exec>

Completely unable to proceed as a result.


Original Comments

Feedback Bot on 11/20/2025, 03:40 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

William Buchanan solved on 11/20/2025, 06:16 AM, undefined votes:

I have an update on this. Problem wasn’t happening on another developer’s PC. The difference we noticed was that he hadn’t installed the .NET 10 Runtime whereas I had. I uninstalled VS and everything .NET 10 related. The folder with the targets file still existed (C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\10.0.0) so I renamed this folder. Rebooted and reinstalled VS2026 without installing other .NET packages and now the problem has gone.

Activity

  1. transferred this issue fromdotnet/aspnetcoreon Nov 20, 2025
  2. added
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Nov 20, 2025
  3. added
    arch-wasmWebAssembly architecture
    untriagedNew issue has not been triaged by the area owner
    and removed
    untriagedNew issue has not been triaged by the area owner
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Nov 20, 2025
  4. dotnet-policy-service commented on Nov 20, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
    See info in area-owners.md if you want to be subscribed.

  5. MihuBot commented on Nov 20, 2025

    @MihuBot

    I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):

  6. removed
    untriagedNew issue has not been triaged by the area owner
    on Nov 24, 2025
  7. added this to the 11.0.0 milestone on Nov 24, 2025
  8. akoeplinger commented on Nov 24, 2025

    @akoeplinger
    Member

    Duplicate of #121783

  9. locked and limited conversation to collaborators on Dec 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions