copy-to-output-directory
95 / 100 · Low risk
Fine to try.
Choosing an MSBuild CopyToOutputDirectory / CopyToPublishDirectory mode: Never, PreserveNewest, Always, and IfDifferent (MSBuild 17.13+), plus $(SkipUnchangedFilesOnCopyAlways). USE FOR: removing the per-build Always copy perf hit; resetting output files mutated between builds. DO NOT USE FOR: general incremental-build diagnosis (use incremental-build); non-MSBuild build systems.
What this skill can do
Runs commands on your computer
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'copy-to-output-directory' ] || [ -L ~/.agents/skills/'copy-to-output-directory' ]; then echo 'A skill folder named copy-to-output-directory already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/dotnet/skills' "$d" && git -C "$d" checkout --quiet '2877c712edc20643b72f64e2983b168e6661d607' -- 'plugins/dotnet-msbuild/skills/copy-to-output-directory' && mkdir -p ~/.agents/skills && cp -R "$d"/'plugins/dotnet-msbuild/skills/copy-to-output-directory' ~/.agents/skills/'copy-to-output-directory' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'copy-to-output-directory' ~/.claude/skills/'copy-to-output-directory' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
[](https://zalavijaysinh.github.io/skilltrust/repos/dotnet/skills/)
Score history
| Date | Version | Score |
|---|---|---|
| 2026-11-14 | 2877c71 | 95 |
| 2026-11-08 | 96c3d68 | 95 |
| 2026-11-07 | 96c3d68 | 95 |