Skip to content

wasmconsole project template fails to build on .NET 11 #127822

Closed

Description

@yamachu

Description

I encountered a build failure when attempting to build a project created with the wasmconsole template using the .NET 11 SDK.
While this template worked in previous versions, it currently fails to compile or link correctly in the .NET 11 environment.

Reproduction Steps

  1. dotnet workload add wasm-tools wasm-experimental
  2. dotnet new wasmconsole --framework net11.0
  3. dotnet build

Expected behavior

The wasmconsole project should build and run successfully on .NET 11, maintaining parity with previous .NET versions.

Alternatively, if the wasmconsole template is intentionally being deprecated or replaced by another mechanism in .NET 11, the template should be officially dropped/removed from the SDK to prevent user confusion.

Actual behavior

$ LANG=en-US dotnet build
    /Users/yamachu/Projects/github.com/yamachu/tmp/wasmconsole/wasmconsole.csproj : error NU1102: 
      Unable to find package Microsoft.NETCore.App.Runtime.browser-wasm with version (= 11.0.0-preview.3.26207.10
      6)
        - Found 27 version(s) in nuget.org [ Nearest version: 6.0.0-preview.3.21201.4 ]
        - Found 0 version(s) in local
        - Found 0 version(s) in /usr/local/share/dotnet/library-packs
        - Found 0 version(s) in net10-nightly
        - Found 0 version(s) in maui-nightly

Regression?

No response

Known Workarounds

Run: dotnet new wasmconsole --framework net10.0
or dotnet new wasmbrowser

Configuration

  • dotnet --version
    • 11.0.100-preview.3.26207.106

Other information

ref?: #102743

Activity

  1. added
    untriaged
    on May 5, 2026
  2. added
    arch-wasm
    os-browser
    on Jun 1, 2026
  3. dotnet-policy-service commented on Jun 1, 2026

    @dotnet-policy-service
    Contributor

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

  4. pavelsavara commented on Jun 1, 2026

    @pavelsavara
    Member

    Do we have WBT for console template ?

  5. removed
    untriaged
    on Jun 8, 2026
  6. added this to the 11.0.0 milestone on Jun 8, 2026
  7. maraf commented on Jun 10, 2026

    @maraf
    Member

    @yamachu Thank you for the report.

    This experimental template was relying on SDK that has been removed in the 11 milestone.
    Going on, only the wasmbrowser will be working. The template can work on node/v8 as well.

  8. locked and limited conversation to collaborators on Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-Build-monoos-browser

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions