forked from microsoft/CsWinRT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.targets
21 lines (17 loc) · 1.19 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
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MidlRTCopyWinMDToOutputDirectoryDependsOn>$(MidlRTCopyWinMDToOutputDirectoryDependsOn);CopyWinRTInteropWinMD</MidlRTCopyWinMDToOutputDirectoryDependsOn>
</PropertyGroup>
<!--Workaround for MidlRT nupkg expecting project to publish $(RootNamespace).winmd-->
<Target Name="CopyWinRTInteropWinMD" Inputs="$(CsWinRTPath)..\obj\merged\WinRT.Interop.winmd" Outputs="$(MidlRTProjectWinMD);$(CsWinRTInteropMetadata)">
<Copy UseHardlinksIfPossible="$(MidlRTUseHardlinksIfPossible)"
SkipUnchangedFiles="$(MidlRTSkipUnchangedFiles)"
SourceFiles="$(CsWinRTPath)..\obj\merged\WinRT.Interop.winmd"
DestinationFiles="$(MidlRTProjectWinMD)" />
<Copy UseHardlinksIfPossible="$(MidlRTUseHardlinksIfPossible)"
SkipUnchangedFiles="$(MidlRTSkipUnchangedFiles)"
SourceFiles="$(CsWinRTPath)..\obj\merged\WinRT.Interop.winmd"
DestinationFiles="$(CsWinRTInteropMetadata)" />
</Target>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.targets', '$(MSBuildThisFileDirectory)../'))" />
</Project>