Created
June 1, 2015 10:05
-
-
Save mlehmk/38ecdfa5af5a596efb81 to your computer and use it in GitHub Desktop.
CopyToOutput.targets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <PropertyGroup> | |
| <UseCommonOutputDirectory>true</UseCommonOutputDirectory> | |
| </PropertyGroup> | |
| <Target Name="AfterBuild"> | |
| <Copy SourceFiles="@(ReferenceCopyLocalPaths)" DestinationFiles="@(ReferenceCopyLocalPaths->'$(SolutionDir)$(Configuration)\lib\%(DestinationSubDirectory)%(Filename)%(Extension)')" Condition="'%(ReferenceCopyLocalPaths.Extension)' == '.dll' Or '%(ReferenceCopyLocalPaths.Extension)' == '.pdb'"/> | |
| </Target> | |
| <Target Name="AfterClean"> | |
| <RemoveDir Directories="$(SolutionDir)$(Configuration)\lib"/> | |
| </Target> | |
| </Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment