diff options
Diffstat (limited to 'src/WixToolset.Core.Native/WixToolset.Core.Native.csproj')
| -rw-r--r-- | src/WixToolset.Core.Native/WixToolset.Core.Native.csproj | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/src/WixToolset.Core.Native/WixToolset.Core.Native.csproj b/src/WixToolset.Core.Native/WixToolset.Core.Native.csproj index ca8797a9..d12d0da6 100644 --- a/src/WixToolset.Core.Native/WixToolset.Core.Native.csproj +++ b/src/WixToolset.Core.Native/WixToolset.Core.Native.csproj | |||
| @@ -5,10 +5,20 @@ | |||
| 5 | <NuspecFile>$(MSBuildThisFileName).nuspec</NuspecFile> | 5 | <NuspecFile>$(MSBuildThisFileName).nuspec</NuspecFile> |
| 6 | <Description>Core Native</Description> | 6 | <Description>Core Native</Description> |
| 7 | <DebugType>embedded</DebugType> | 7 | <DebugType>embedded</DebugType> |
| 8 | <!-- <BeforePack>SetNuspecProperties</BeforePack> --> | ||
| 9 | </PropertyGroup> | 8 | </PropertyGroup> |
| 10 | 9 | ||
| 11 | <ItemGroup> | 10 | <ItemGroup> |
| 11 | <ProjectReference Include="..\wixnative\wixnative.vcxproj"> | ||
| 12 | <PrivateAssets>All</PrivateAssets> | ||
| 13 | <Properties>Platform=Win32</Properties> | ||
| 14 | </ProjectReference> | ||
| 15 | <ProjectReference Include="..\wixnative\wixnative.vcxproj"> | ||
| 16 | <PrivateAssets>All</PrivateAssets> | ||
| 17 | <Properties>Platform=x64</Properties> | ||
| 18 | </ProjectReference> | ||
| 19 | </ItemGroup> | ||
| 20 | |||
| 21 | <ItemGroup> | ||
| 12 | <PackageReference Include="WixToolset.Data" Version="4.0.*" PrivateAssets="All" /> | 22 | <PackageReference Include="WixToolset.Data" Version="4.0.*" PrivateAssets="All" /> |
| 13 | </ItemGroup> | 23 | </ItemGroup> |
| 14 | 24 | ||
| @@ -20,16 +30,16 @@ | |||
| 20 | <PropertyGroup> | 30 | <PropertyGroup> |
| 21 | <NativeFileListPath Condition=" '$(NCrunch)'=='' ">$(MSBuildProjectDir)..\..\build\obj\$(ProjectName)\$(Configuration)\NativeFileList.txt</NativeFileListPath> | 31 | <NativeFileListPath Condition=" '$(NCrunch)'=='' ">$(MSBuildProjectDir)..\..\build\obj\$(ProjectName)\$(Configuration)\NativeFileList.txt</NativeFileListPath> |
| 22 | <NativeFileListPath Condition=" '$(NCrunch)'=='1' ">$(NCrunchOriginalProjectDir)..\..\build\obj\$(ProjectName)\$(Configuration)\NativeFileList.txt</NativeFileListPath> | 32 | <NativeFileListPath Condition=" '$(NCrunch)'=='1' ">$(NCrunchOriginalProjectDir)..\..\build\obj\$(ProjectName)\$(Configuration)\NativeFileList.txt</NativeFileListPath> |
| 33 | <MergeModDirectory>$(MSBuildThisFileDirectory)..\wixnative\</MergeModDirectory> | ||
| 23 | </PropertyGroup> | 34 | </PropertyGroup> |
| 24 | 35 | ||
| 25 | <Target Name="BuildWixNative" BeforeTargets="GetCopyToOutputDirectoryItems" Condition=" '$(NCrunch)'=='' "> | 36 | <Target Name="BuildWixNative" BeforeTargets="GetCopyToOutputDirectoryItems" Condition=" '$(NCrunch)'=='' "> |
| 26 | <MSBuild Projects="..\wixnative\wixnative.vcxproj" Properties="Platform=Win32" Targets="Build;BuiltProjectOutputGroup;ContentFilesProjectOutputGroup;DebugSymbolsProjectOutputGroup"> | 37 | <ItemGroup> |
| 27 | <Output TaskParameter="TargetOutputs" ItemName="_NativeProjectOutput" /> | 38 | <_NativeProjectOutput Include="$(MergeModDirectory)x64\mergemod.dll" /> |
| 28 | </MSBuild> | 39 | <_NativeProjectOutput Include="$(OutputPath)..\x64\wixnative.exe" /> |
| 29 | <MSBuild Projects="..\wixnative\wixnative.vcxproj" Properties="Platform=x64" Targets="Build;BuiltProjectOutputGroup;ContentFilesProjectOutputGroup;DebugSymbolsProjectOutputGroup"> | 40 | <_NativeProjectOutput Include="$(OutputPath)..\x64\wixnative.pdb" /> |
| 30 | <Output TaskParameter="TargetOutputs" ItemName="_NativeProjectOutput" /> | 41 | </ItemGroup> |
| 31 | </MSBuild> | 42 | |
| 32 | |||
| 33 | <WriteLinesToFile File="$(NativeFileListPath)" Lines="@(_NativeProjectOutput)" Overwrite="true" /> | 43 | <WriteLinesToFile File="$(NativeFileListPath)" Lines="@(_NativeProjectOutput)" Overwrite="true" /> |
| 34 | 44 | ||
| 35 | <ItemGroup> | 45 | <ItemGroup> |
| @@ -60,8 +70,8 @@ | |||
| 60 | 70 | ||
| 61 | <Target Name="SetNuspecProperties" AfterTargets="CoreBuild"> | 71 | <Target Name="SetNuspecProperties" AfterTargets="CoreBuild"> |
| 62 | <PropertyGroup> | 72 | <PropertyGroup> |
| 63 | <NuspecBasePath>$(OutputPath)</NuspecBasePath> | 73 | <NuspecBasePath>$(OutputPath)..\</NuspecBasePath> |
| 64 | <NuspecProperties>Configuration=$(Configuration);Id=$(MSBuildThisFileName);Version=$(BuildVersionSimple);Authors=$(Authors);Copyright=$(Copyright);Description=$(Description)</NuspecProperties> | 74 | <NuspecProperties>Id=$(MSBuildThisFileName);Version=$(BuildVersionSimple);Authors=$(Authors);Copyright=$(Copyright);Description=$(Description);RepositoryCommit=$(SourceRevisionId);RepositoryType=$(RepositoryType);RepositoryUrl=$(PrivateRepositoryUrl);MergeModDir=$(MergeModDirectory)</NuspecProperties> |
| 65 | </PropertyGroup> | 75 | </PropertyGroup> |
| 66 | </Target> | 76 | </Target> |
| 67 | </Project> | 77 | </Project> |
