Skip to content

Instantly share code, notes, and snippets.

@NxSoftware
Created January 3, 2018 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NxSoftware/ec755777ae5de403f28249ee00ff9634 to your computer and use it in GitHub Desktop.
Save NxSoftware/ec755777ae5de403f28249ee00ff9634 to your computer and use it in GitHub Desktop.
MSBuild copy files to output
<ItemGroup>
<_FilesToBeCopied Include="$(ProjectDir)\SourceDirectory\**\*.extension" />
</ItemGroup>
<Target Name="CopyFiles" AfterTargets="build">
<Copy SourceFiles="@(_FilesToBeCopied)"
DestinationFolder="$(OutputPath)\TargetDirectory\%(RecursiveDir)"
SkipUnchangedFiles="false"
OverwriteReadOnlyFiles="true"
Retries="3"
RetryDelayMilliseconds="300" />
</Target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment