-
Notifications
You must be signed in to change notification settings - Fork 2
/
Directory.Build.targets
43 lines (41 loc) · 1.69 KB
/
Directory.Build.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<Project>
<Target Name="CopyRelease"
AfterTargets="Build"
Condition="'$(Configuration)'=='Release' And '$(TargetDir)'!=''">
<ItemGroup>
<OutputFiles Include="$(TargetDir)*"/>
</ItemGroup>
<Copy SourceFiles="@(OutputFiles)"
DestinationFolder="$(ProjectDir)../Release/lib/$(TargetFramework)/"
Condition="'@(OutputFiles)'!=''"
SkipUnchangedFiles="true"
OverwriteReadOnlyFiles="true"/>
</Target>
<Target Name="CopyDebug"
AfterTargets="Build"
Condition="'$(Configuration)'=='Debug' And '$(TargetDir)'!=''">
<ItemGroup>
<OutputFiles Include="$(TargetDir)*"/>
</ItemGroup>
<Copy SourceFiles="@(OutputFiles)"
DestinationFolder="$(ProjectDir)../Debug/$(TargetFramework)/"
Condition="'@(OutputFiles)'!=''"
SkipUnchangedFiles="true"
OverwriteReadOnlyFiles="true"/>
</Target>
<Target Name="CopyContent"
AfterTargets="Build"
Condition="'$(Configuration)'=='Release' And Exists('$(ProjectDir)content') And '$(TargetName)'!=''">
<ItemGroup>
<ContentFiles Include="$(ProjectDir)content/**/*"/>
</ItemGroup>
<Copy SourceFiles="@(ContentFiles)"
DestinationFiles="@(ContentFiles->'$(ProjectDir)../Release/contentFiles/any/any/$(TargetName)/%(RecursiveDir)%(Filename)%(Extension)')"
OverwriteReadOnlyFiles="true"
SkipUnchangedFiles="true"/>
<Copy SourceFiles="@(ContentFiles)"
DestinationFiles="@(ContentFiles->'$(ProjectDir)../Release/content/$(TargetName)/%(RecursiveDir)%(Filename)%(Extension)')"
OverwriteReadOnlyFiles="true"
SkipUnchangedFiles="true"/>
</Target>
</Project>