dotnet / dotnet/msbuild

SkipUnchangedFiles doesn't work on Linux

Open
#4,015 2 comments 0 reactions 0 assignees View on GitHub
triaged xplat
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

On Windows and MacOS `File.Copy` preserves `LastWriteTime`, but it is not the case on Linux.
For this reason `SkipUnchangedFiles=true` doesn't really work on Linux, because we use `LastWriteTime` to check if file has changed or not. Linux doesn't preserve `LastWriteTime`, so it will always differ for original file and copy.

https://github.com/Microsoft/msbuild/pull/3997/files#diff-4826624e1418003ab55be4305eadddadR568

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.