Skip to content

WasmEmitTypeScriptDefinitions makes builds non-incremental #124729

Closed

Description

@jjonescz

Description

Enabling WasmEmitTypeScriptDefinitions (copying dotnet.d.ts to wwwroot) makes re-builds non-incremental.

Reproduction Steps

  1. Run dotnet new blazorwasm.
  2. Set <WasmEmitTypeScriptDefinitions>true</WasmEmitTypeScriptDefinitions> in the project file.
  3. (Add the dotnet.d.ts to .gitignore and ensure the repo is in clean state via git clean -fxd.)
  4. Run dotnet build -bl && dotnet build -question -bl:question.binlog.

Expected behavior

Suceeds.

Actual behavior

Fails with error Building target "_CopyOutOfDateSourceItemsToOutputDirectory" partially, because some output files are out of date with respect to their input files.

Regression?

No, WasmEmitTypeScriptDefinitions is a new feature (added in #120097).

Known Workarounds

Adding this to the project makes it work:

  <ItemGroup>
    <Content Remove="wwwroot\dotnet.d.ts" />
    <None Include="wwwroot\dotnet.d.ts" />
  </ItemGroup>

Configuration

No response

Other information

No response

Activity

  1. added
    untriaged
    on Feb 22, 2026
  2. added
    arch-wasm
    os-browser
    and removed
    untriaged
    on Mar 12, 2026
  3. added this to the 11.0.0 milestone on Mar 12, 2026
  4. dotnet-policy-service commented on Mar 12, 2026

    @dotnet-policy-service
    Contributor

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

  5. self-assigned this
    on Mar 12, 2026
  6. locked and limited conversation to collaborators on Apr 16, 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