Skip to content

Better error when trying to load a asyncv2 library in Mono Blazor WASM net11 projects #137984

Open

Description

@akoeplinger

We hit a case today where a customer turned on asyncv2 in their root Directory.Build.props as part of a net11 migration:

<Features>$(Features);runtime-async=on</Features>

They didn't realize that that makes any library incompatible with Mono-based Blazor WASM.

The error you get today during startup is hard to reason about:

image

We should add build time and/or runtime checking to warn (error?) when an async2-enabled library is used.

Activity

  1. added
    untriaged
    on Nov 20, 2026
  2. dotnet-policy-service commented on Nov 20, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @agocke, @elinor-fung
    See info in area-owners.md if you want to be subscribed.

  3. added this to the 11.0.0 milestone on Nov 20, 2026
  4. added
    arch-wasm
    os-browser
    and removed
    untriaged
    on Nov 20, 2026
  5. dotnet-policy-service commented on Nov 20, 2026

    @dotnet-policy-service
    Contributor

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

  6. self-assigned this
    on Nov 20, 2026
  7. jkotas commented on Nov 20, 2026

    @jkotas
    Member

    This diagnostic was tracked by #124489 , but looks like the issue was closed without implementing it.

  8. pavelsavara commented on Nov 20, 2026

    @pavelsavara
    Member

    I'm working on it here #138002 as a runtime check. The other alternative is MSBuild scan after ILLink.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-AssemblyLoader-monoos-browserruntime-async

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions