Skip to content

Instantly share code, notes, and snippets.

@bjornmicallef
Created February 27, 2020 19:40
Show Gist options
  • Save bjornmicallef/e4467be3cbe844ee114c547111209c7f to your computer and use it in GitHub Desktop.
Save bjornmicallef/e4467be3cbe844ee114c547111209c7f to your computer and use it in GitHub Desktop.
adding an existing file as a link in visual studio
<Target Name="CopyLinkedContentFiles" BeforeTargets="Build">
<Copy SourceFiles="%(Content.Identity)" DestinationFiles="bin\Debug\%(Content.Link)" SkipUnchangedFiles='true' OverwriteReadOnlyFiles='true' Condition="'%(Content.Link)' != ''" />
</Target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment