Skip to content

C# webassembly dotnet publish fails when parenthesis are in user profile name #120327

Closed

Description

@laifharwood

Description

Getting the following error when executing a dotnet publish with web assembly without Blazor on .NET 9. on Windows. There is a parenthesis in my user profile name that seems to be causing the issue. It published without error on a previous computer that didn't have any special characters in the user profile name.
Image

Reproduction Steps

  1. Login to a user profile that has parenthesis in the name, for example C:\Users\JohnDoe(US).
  2. Clone this repo
  3. Open command line in wasmbrowser directory.
  4. Execute dotnet publish.
  5. Notice the error.
  6. If you repeat steps on a profile that doesn't have parenthesis (C:\Users\JohnDoe) then it should publish successfully.

Expected behavior

Publishes without error when there is parenthesis in the user profile name.

Actual behavior

Here is the actual error after executing dotnet publish

C:_git\wasm-runtime-error\wasmbrowser>dotnet publish
Restore complete (0.3s)
wasmbrowser failed with 4 error(s) (1.1s)
C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\9.0.9\Sdk\WasmApp.Common.targets(875,5): error :
Failed to compile C:\temp\packages\microsoft.netcore.app.runtime.mono.multithread.browser-wasm\9.0.9\runtimes\browser-wasm\native\src\runtime.c -> C:_git\wasm-runtime-error\wasmbrowser\obj\Release\net9.0\wasm\for-publish\ru
ntime.o
'C:\Users\LaifHarwood' is not recognized as an internal or external command,
operable program or batch file. [took 0.21s]
C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\9.0.9\Sdk\WasmApp.Common.targets(875,5): error :
Failed to compile C:\temp\packages\microsoft.netcore.app.runtime.mono.multithread.browser-wasm\9.0.9\runtimes\browser-wasm\native\src\driver.c -> C:_git\wasm-runtime-error\wasmbrowser\obj\Release\net9.0\wasm\for-publish\dri
ver.o
'C:\Users\LaifHarwood' is not recognized as an internal or external command,
operable program or batch file. [took 0.22s]
C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\9.0.9\Sdk\WasmApp.Common.targets(875,5): error :
Failed to compile C:\temp\packages\microsoft.netcore.app.runtime.mono.multithread.browser-wasm\9.0.9\runtimes\browser-wasm\native\src\corebindings.c -> C:_git\wasm-runtime-error\wasmbrowser\obj\Release\net9.0\wasm\for-publi
sh\corebindings.o
'C:\Users\LaifHarwood' is not recognized as an internal or external command,
operable program or batch file. [took 0.23s]
C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\9.0.9\Sdk\WasmApp.Common.targets(875,5): error :
Failed to compile C:\temp\packages\microsoft.netcore.app.runtime.mono.multithread.browser-wasm\9.0.9\runtimes\browser-wasm\native\src\pinvoke.c -> C:_git\wasm-runtime-error\wasmbrowser\obj\Release\net9.0\wasm\for-publish\pi
nvoke.o
'C:\Users\LaifHarwood' is not recognized as an internal or external command,
operable program or batch file. [took 0.24s]

Activity

  1. added
    untriaged
    on Oct 2, 2025
  2. added
    arch-wasm
    os-browser
    and removed
    untriaged
    on Oct 9, 2025
  3. added this to the 11.0.0 milestone on Oct 9, 2025
  4. dotnet-policy-service commented on Oct 9, 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. Vx2gas commented on Jan 28, 2026

    @Vx2gas

    Any updates to this?

  6. modified the milestones: 11.0.0, Future on Jul 15, 2026
  7. added a commit that references this issue on Jul 19, 2026
    0beaab8
  8. locked and limited conversation to collaborators on Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-wasmarea-Build-monoos-browser

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions