Analyze MSBuild binary logs to diagnose build failures.
Choosing a CopyToOutputDirectory Mode
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.
Related skills
Generate MSBuild binary logs (binlogs) for build diagnostics and analysis.
Diagnose and fix under-parallelized MSBuild builds.