Skip to content

Delete stale EmptyFiles marker when output missing#200

Merged
SimonCropp merged 8 commits intomainfrom
Delete-stale-EmptyFiles-marker-when-output-missing
Feb 6, 2026
Merged

Delete stale EmptyFiles marker when output missing#200
SimonCropp merged 8 commits intomainfrom
Delete-stale-EmptyFiles-marker-when-output-missing

Conversation

@SimonCropp
Copy link
Member

Add a new MSBuild target DeleteEmptyFilesMarkerIfTargetMissing that runs before CopyEmptyFilesIncremental and deletes the intermediate marker (EmptyFiles.copied) when the EmptyFiles directory is missing from the target output. This forces the copy to re-run if the output was cleaned without cleaning the intermediate output. Update documentation to clarify that the marker lives in the intermediate output, document the new deletion behavior and the additional re-copy condition, and add a newline at EOF in EmptyFiles.targets.

SimonCropp and others added 8 commits February 5, 2026 19:22
Add a new MSBuild target DeleteEmptyFilesMarkerIfTargetMissing that runs before CopyEmptyFilesIncremental and deletes the intermediate marker (EmptyFiles.copied) when the EmptyFiles directory is missing from the target output. This forces the copy to re-run if the output was cleaned without cleaning the intermediate output. Update documentation to clarify that the marker lives in the intermediate output, document the new deletion behavior and the additional re-copy condition, and add a newline at EOF in EmptyFiles.targets.
Uses Windows Restart Manager API to identify which processes hold file locks when TempDirectory.Dispose() fails.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@SimonCropp SimonCropp merged commit 8ef09a5 into main Feb 6, 2026
5 checks passed
@SimonCropp SimonCropp deleted the Delete-stale-EmptyFiles-marker-when-output-missing branch February 6, 2026 20:00
@SimonCropp SimonCropp added this to the 8.17.2 milestone Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant