You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WasmEmitTypeScriptDefinitions makes builds non-incremental #124729
Enabling WasmEmitTypeScriptDefinitions (copying dotnet.d.ts to wwwroot) makes re-builds non-incremental.
Reproduction Steps
Run dotnet new blazorwasm.
Set <WasmEmitTypeScriptDefinitions>true</WasmEmitTypeScriptDefinitions> in the project file.
(Add the dotnet.d.ts to .gitignore and ensure the repo is in clean state via git clean -fxd.)
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).
Activity
dotnet-policy-service commentedon Mar 12, 2026
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.
Fix WasmEmitTypeScriptDefinitions making builds non-incremental
Fix WasmEmitTypeScriptDefinitions making builds non-incremental
Add second build to TypeScript definitions test for incrementality