Files
YuliiaKovalova 9c7436b949 Add copy-to-output-directory MSBuild skill (IfDifferent / SkipUnchangedFilesOnCopyAlways) (#883)
* Add copy-to-output-directory MSBuild skill

Adds a focused dotnet-msbuild skill documenting how to choose a
CopyToOutputDirectory / CopyToPublishDirectory mode, including the
`IfDifferent` mode and the `$(SkipUnchangedFilesOnCopyAlways)` property
introduced in MSBuild 17.13 / .NET SDK 9.0.2xx (dotnet/msbuild#11052).

Covers mode semantics (Never/PreserveNewest/Always/IfDifferent), why
`Always` is a per-build perf hit, the SkipUnchangedFiles timestamp+size
comparison, transitive copy through ProjectReference, and version
requirements. Registers the skill in the msbuild, msbuild-code-review,
and build-perf agent routing lists.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 881d26ad-87b7-48e3-8ec6-043163944437

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Address review feedback on copy-to-output-directory skill

- Soften the IfDifferent description to avoid overclaiming: it skips
  when "unchanged per MSBuild's heuristic" (timestamp + size, not a
  content hash), rather than "identical"/full Always equivalence.
- Correct the target-flow wording: the three copy targets run as
  dependencies of _CopySourceItemsToOutputDirectory (invoked by
  CopyFilesToOutputDirectory).
- Restore the USE FOR / DO NOT USE FOR routing pattern for the skill's
  frontmatter description, matching sibling skills.
- Reclaim skill-menu budget headroom (per maintainer note) by tightening
  the verbose property-patterns and target-authoring descriptions;
  dotnet-msbuild rendered menu is now ~14,897/15,000 chars.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 881d26ad-87b7-48e3-8ec6-043163944437

* Fix article: 'an SQLite' per review

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 881d26ad-87b7-48e3-8ec6-043163944437

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-16 10:17:47 +00:00
..