30 lines
1.3 KiB
XML
30 lines
1.3 KiB
XML
<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" />
|
|
<BuildConfigurations Include="/p:Configuration=Release /p:platform=x64" />
|
|
</ItemGroup>
|
|
|
|
<Error
|
|
Text="Could not find an installation of Visual Studio with the C++ development tools."
|
|
Condition="'$(VisualStudioMSBuildx86Path)' == ''" />
|
|
|
|
<Exec Command=""$(VisualStudioMSBuildx86Path)" "$(RepositoryRoot)src\AspNetCore\AspNetCore.vcxproj" %(BuildConfigurations.Identity)"
|
|
Condition="'$(VisualStudioMSBuildx86Path)' != ''" />
|
|
<Exec Command=""$(VisualStudioMSBuildx86Path)" "$(RepositoryRoot)src\RequestHandler\RequestHandler.vcxproj" %(BuildConfigurations.Identity)"
|
|
Condition="'$(VisualStudioMSBuildx86Path)' != ''" />
|
|
</Target>
|
|
|
|
<Target Name="PackageNativeProjects">
|
|
<MSBuild
|
|
Projects="$(MSBuildThisFileDirectory)../nuget/AspNetCore.csproj"
|
|
Targets="Restore;Pack"
|
|
Properties="PackageVersion=$(PackageVersion);PackageOutputPath=$(BuildDir);BuildNumber=$(BuildNumber)" />
|
|
</Target>
|
|
|
|
</Project> |