-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCs.Interop.targets
77 lines (66 loc) · 2.8 KB
/
Cs.Interop.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!--
Layout:
=======
{native-project}
obj\interop\x64\Debug\{native-files}
where:
x64 $(InteropPlatform)
-->
<Project>
<!-- Make sure that ImportProject is available in VisualStudio's Build Action combo -->
<ItemGroup>
<AvailableItemName Include="ImportProject" />
</ItemGroup>
<Import Project="Com.WorkDir.props"/>
<Import Project="Com.InteropPlatform.props" />
<PropertyGroup>
<TargetFrameworks />
<InteropOutDir Condition="'$(InteropOutDir)' == ''">obj\interop\$(InteropPlatform)\$(Configuration)\</InteropOutDir>
</PropertyGroup>
<Import Project="ImportProject.targets" />
<ItemDefinitionGroup>
<ImportProject>
<Platform>$(InteropPlatform)</Platform>
<OutDir>$(InteropOutDir)</OutDir>
</ImportProject>
</ItemDefinitionGroup>
<Target Name="CreateInteropContent" DependsOnTargets="ImportProject">
<Message Condition="'$(ZouDebug)' == 'true'" Importance="high" Text="### [$(MSBuildProjectFile)] CreateInteropContent" />
<ItemGroup>
<_InteropContent Include="$(InteropOutDir)**\*" />
<_InteropContent>
<Link>%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Visible>false</Visible>
</_InteropContent>
<Content Remove="@(_InteropContent)" />
<Content Include="@(_InteropContent)" />
<_InteropContent Remove="@(_InteropContent)" />
</ItemGroup>
<!--<LogItems Items="@(Content)" Title="Content" AllMetadata="true" />
<Message Importance="high" Text=" " />-->
</Target>
<ItemGroup>
<_InteropContent Include="$(InteropOutDir)**\*">
<Link>%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Visible>false</Visible>
</_InteropContent>
<Content Include="@(_InteropContent)" />
<_InteropContent Remove="@(_InteropContent)" />
</ItemGroup>
<Target Name="InteropBuild" BeforeTargets="ResolveReferences" DependsOnTargets="CreateInteropContent" Condition="'$(DesignTimeBuild)' != 'true' And '$(BuildingProject)' == 'true'">
<Message Condition="'$(ZouDebug)' == 'true'" Importance="high" Text="### [$(MSBuildProjectFile)] InteropBuild" />
<!--<LogItems Items="@(Content)" Title="InteropBuild.Content" AllMetadata="true" />
<Message Importance="high" Text=" " />-->
</Target>
<Target Name="InteropClean" BeforeTargets="Clean" DependsOnTargets="ImportProjectInit">
<Message Condition="'$(ZouDebug)' == 'true'" Importance="high" Text="### [$(MSBuildProjectFile)] InteropClean(%(ImportProject.OutDir))" />
<ItemGroup>
<InteropClean Include="$(InteropOutDir)**\*" />
</ItemGroup>
<!--<LogItems Items="@(InteropClean)" Title="InteropClean" />
<Message Importance="high" Text=" " />-->
<Delete Files="@(InteropClean)" />
</Target>
</Project>