Adds package native projects

This commit is contained in:
Justin Kotalik 2017-12-27 12:10:38 -08:00
parent f27190a1f1
commit 483a8c61a3
1 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
<Project>
<PropertyGroup>
<PackageDependsOn Condition="'$(OS)'=='Windows_NT'">$(PackageDependsOn);PackageNativeProjects</PackageDependsOn>
</PropertyGroup>
<Target Name="BuildNativeAssets" DependsOnTargets="GetToolsets" BeforeTargets="Compile" >
<ItemGroup>
<BuildConfigurations Include="/p:Configuration=Release /p:platform=Win32" />
@ -16,11 +20,11 @@
Condition="'$(VisualStudioMSBuildx86Path)' != ''" />
</Target>
<Target Name="PackageProjects">
<Target Name="PackageNativeProjects">
<MSBuild
Projects="$(MSBuildThisFileDirectory)../nuget/AspNetCore.csproj"
Targets="Restore;Pack"
Properties="PackageVersion=$(PackageVersion);PackageOutputPath=$(BuildDir)" />
Properties="PackageVersion=$(PackageVersion);PackageOutputPath=$(BuildDir);BuildNumber=$(BuildNumber)" />
</Target>
</Project>