blob: b02c00adb0b682805a02db611f6fa549ee9dd477 (
plain)
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
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<NuspecFile>$(MSBuildThisFileName).nuspec</NuspecFile>
<Description>Core Native</Description>
<DebugType>embedded</DebugType>
<!-- <BeforePack>SetNuspecProperties</BeforePack> -->
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63102-01" PrivateAssets="All" />
<PackageReference Include="Nerdbank.GitVersioning" Version="2.1.65" PrivateAssets="all" />
</ItemGroup>
<Target Name="BuildWixNative" BeforeTargets="GetCopyToOutputDirectoryItems">
<MSBuild Projects="..\wixnative\wixnative.vcxproj" Properties="Platform=Win32" Targets="Build;BuiltProjectOutputGroup;DebugSymbolsProjectOutputGroup">
<Output TaskParameter="TargetOutputs" ItemName="_NativeProjectOutput" />
</MSBuild>
<MSBuild Projects="..\wixnative\wixnative.vcxproj" Properties="Platform=x64" Targets="Build;BuiltProjectOutputGroup;DebugSymbolsProjectOutputGroup">
<Output TaskParameter="TargetOutputs" ItemName="_NativeProjectOutput" />
</MSBuild>
<ItemGroup>
<AllItemsFullPathWithTargetPath Include="@(_NativeProjectOutput->'%(FullPath)')">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>%(Filename)%(Extension)</TargetPath>
</AllItemsFullPathWithTargetPath>
</ItemGroup>
</Target>
<Target Name="SetNuspecProperties" AfterTargets="CoreBuild">
<PropertyGroup>
<NuspecBasePath>$(OutputPath)</NuspecBasePath>
<NuspecProperties>Configuration=$(Configuration);Id=$(MSBuildThisFileName);Version=$(BuildVersionSimple);Authors=$(Authors);Copyright=$(Copyright);Description=$(Description)</NuspecProperties>
</PropertyGroup>
</Target>
</Project>
|