| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> |
| 3 | <Project> |
| 4 | <Import Project="..\Directory.Build.targets" /> |
| 5 | |
| 6 | <ItemGroup Condition=" '$(RequiresNativeWixAssets)'=='true' and ('$(TargetFrameworkIdentifier)'=='.NETFramework' or '$(RuntimeIdentifier)'!='' ) "> |
| 7 | <!-- Copy the x64 binaries when there is no RuntimeIdentifier since we've standardized on VS2022 (which is 64-bit) --> |
| 8 | <None Include="$(MSBuildThisFileDirectory)wixnative\x64\mergemod.dll" CopyToOutputDirectory="PreserveNewest" Condition=" '$(RuntimeIdentifier)'=='win-x64' or '$(RuntimeIdentifier)'=='' " /> |
| 9 | <None Include="$(BaseOutputPath)$(Configuration)\x64\wixnative.exe" CopyToOutputDirectory="PreserveNewest" Condition=" '$(RuntimeIdentifier)'=='win-x64' or '$(RuntimeIdentifier)'=='' " /> |
| 10 | |
| 11 | <None Include="$(MSBuildThisFileDirectory)wixnative\arm64\mergemod.dll" CopyToOutputDirectory="PreserveNewest" Condition=" '$(RuntimeIdentifier)'=='win-arm64' " /> |
| 12 | <None Include="$(BaseOutputPath)$(Configuration)\arm64\wixnative.exe" CopyToOutputDirectory="PreserveNewest" Condition=" '$(RuntimeIdentifier)'=='win-arm64' " /> |
| 13 | |
| 14 | <None Include="$(MSBuildThisFileDirectory)wixnative\Win32\mergemod.dll" CopyToOutputDirectory="PreserveNewest" Condition=" '$(RuntimeIdentifier)'=='win-x86' " /> |
| 15 | <None Include="$(BaseOutputPath)$(Configuration)\x86\wixnative.exe" CopyToOutputDirectory="PreserveNewest" Condition=" '$(RuntimeIdentifier)'=='win-x86' " /> |
| 16 | </ItemGroup> |
| 17 | |
| 18 | <ItemGroup Condition=" '$(RequiresNativeWixAssets)'=='true' and '$(TargetFrameworkIdentifier)'!='.NETFramework' and '$(RuntimeIdentifier)'=='' "> |
| 19 | <NativeLibrary Include="$(MSBuildThisFileDirectory)wixnative\ARM64\mergemod.dll" RuntimeIdentifier="win-arm64" /> |
| 20 | <NativeLibrary Include="$(MSBuildThisFileDirectory)wixnative\x64\mergemod.dll" RuntimeIdentifier="win-x64" /> |
| 21 | <NativeLibrary Include="$(MSBuildThisFileDirectory)wixnative\Win32\mergemod.dll" RuntimeIdentifier="win-x86" /> |
| 22 | <NativeLibrary Include="$(BaseOutputPath)$(Configuration)\ARM64\wixnative.exe" RuntimeIdentifier="win-arm64" /> |
| 23 | <NativeLibrary Include="$(BaseOutputPath)$(Configuration)\x64\wixnative.exe" RuntimeIdentifier="win-x64" /> |
| 24 | <NativeLibrary Include="$(BaseOutputPath)$(Configuration)\x86\wixnative.exe" RuntimeIdentifier="win-x86" /> |
| 25 | |
| 26 | <!-- |
| 27 | This PackageReference is required so the RuntimeTargetsCopyLocalItems have a package (any package would |
| 28 | do, WixToolset.Data is as good as any) to "attach" themselves to. |
| 29 | --> |
| 30 | <PackageReference Include="WixToolset.Data" /> |
| 31 | |
| 32 | <RuntimeTargetsCopyLocalItems Include="@(NativeLibrary)" |
| 33 | AssetType="native" |
| 34 | DestinationSubDirectory="runtimes\%(RuntimeIdentifier)\native\" |
| 35 | NuGetPackageId="WixToolset.Data" |
| 36 | RuntimeIdentifier="%(RuntimeIdentifier)" |
| 37 | /> |
| 38 | <None Include="@(RuntimeTargetsCopyLocalItems)" |
| 39 | Link="%(DestinationSubDirectory)\%(FileName)%(Extension)" |
| 40 | CopyToOutputDirectory="PreserveNewest" /> |
| 41 | </ItemGroup> |
| 42 | </Project> |