Skip to content

ManagedToNativeGenerator is invoked on every build #122575

Description

@AdmiralSnyder

Description

ManagedToNativeGenerator in WasmApp.Common.targets is called too often, even if no source code changed.

this results a) in a time loss when building or hitting F5 in VS and
b) in my case lots of unnecessary warnings obscuring actual warnings:

Image

Reproduction Steps

create a blazor wasm project
run dotnet build -bl
run dotnet build -bl a second time without modifying files in between runs
, inspect the binlog
, observe that ManagedToNativeGenerator is there, eating up time unnecessarily

Image

here's my .csproj:

SAK SAK SAK SAK $(CODie__DotNetVersion) true Default service-worker-assets.js

Expected behavior

this should only run when something has actually changed in the inputs

Actual behavior

it runs on every build

Regression?

No response

Known Workarounds

No response

Configuration

.net 10.0.0.101
windows 11 pro 25h2 26200.7462
VS 2026 18.1.0

Other information

No response

Activity

  1. added
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Dec 16, 2025
  2. AdmiralSnyder commented on Dec 16, 2025

    @AdmiralSnyder
    ContributorAuthor

    @wasabii pinging you to be kept current here

  3. added
    arch-wasmWebAssembly architecture
    and removed
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Dec 16, 2025
  4. dotnet-policy-service commented on Dec 16, 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. pavelsavara commented on Dec 17, 2025

    @pavelsavara
    Member
  6. modified the milestones: 10.0.x, 11.0.0 on Dec 17, 2025
  7. removed
    untriagedNew issue has not been triaged by the area owner
    on Dec 17, 2025
  8. modified the milestones: 11.0.0, 12.0.0 on Jul 15, 2026
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