dotnet / dotnet/msbuild

1-to-1 Inputs and Outputs with matching timestamps are not considered up-to-date

Open
#7,021 7 comments 0 reactions 0 assignees View on GitHub
Area: Documentation bug triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

A Target simply copies multiple SourceFiles into DestinationFiles that are also defined as Inputs and Outputs. A Copy task preserves timestamps (undocumented feature). Notice that 1-to-1 pairs will have matching timestamps, which may be different in different pairs. This is not good enough to skip the Target next time despite what [the docs](https://docs.microsoft.com/en-us/visualstudio/msbuild/incremental-builds?view=vs-2022) say.

Matching timestamps equal in pairs but not throughout are not considered up-to-date. Everything works if timestamps are equal everywhere.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.