Skip to content

Instantly share code, notes, and snippets.

@rahmathm1
Created February 10, 2015 10:57
Show Gist options
  • Save rahmathm1/76d9b800ba71c07e024b to your computer and use it in GitHub Desktop.
Save rahmathm1/76d9b800ba71c07e024b to your computer and use it in GitHub Desktop.
MSBuild command for copying linked TypeScript files on build
<Project>
...
<Target Name="CopyLinkedTSFiles" BeforeTargets="Build">
<Copy SourceFiles="%(TypeScriptCompile.Identity)"
DestinationFiles="%(TypeScriptCompile.Link)"
SkipUnchangedFiles='true'
OverwriteReadOnlyFiles='true'
Condition="'%(TypeScriptCompile.Link)' != ''" />
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment