Description
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).
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
Description
Enabling
WasmEmitTypeScriptDefinitions(copyingdotnet.d.tstowwwroot) makes re-builds non-incremental.Reproduction Steps
dotnet new blazorwasm.<WasmEmitTypeScriptDefinitions>true</WasmEmitTypeScriptDefinitions>in the project file.dotnet.d.tsto.gitignoreand ensure the repo is in clean state viagit clean -fxd.)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,
WasmEmitTypeScriptDefinitionsis a new feature (added in #120097).Known Workarounds
Adding this to the project makes it work:
Configuration
No response
Other information
No response