73 lines
3.4 KiB
XML
73 lines
3.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.props))\Directory.Build.props" />
|
|
|
|
<Import Project="Product.props" />
|
|
|
|
<PropertyGroup>
|
|
<Name>AspNetCoreTargetingPack</Name>
|
|
<OutputName>$(TargetingPackInstallerBaseName)-$(PackageVersion)-win-$(Platform)</OutputName>
|
|
<OutputType>Package</OutputType>
|
|
<IsProductInstaller>true</IsProductInstaller>
|
|
<ProjectGuid>0AC34F1B-8056-4FFB-A398-E6BB7D67B48D</ProjectGuid>
|
|
<HarvestDirectoryAutoGenerateGuids>true</HarvestDirectoryAutoGenerateGuids>
|
|
<HarvestDirectorySuppressSpecificWarnings>5150;5151</HarvestDirectorySuppressSpecificWarnings>
|
|
<HarvestDirectorySuppressRegistry>true</HarvestDirectorySuppressRegistry>
|
|
<HarvestSource>$(IntermediateOutputPath)dn\</HarvestSource>
|
|
<DefineConstants>$(DefineConstants);AspNetCoreTargetingPackSource=$(HarvestSource)</DefineConstants>
|
|
<NamespaceGuid>DDBB771F-963F-47D3-8510-9ABD04DBE1D1</NamespaceGuid>
|
|
<SchemaVersion>2.0</SchemaVersion>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<WixExtension Include="WixDependencyExtension">
|
|
<HintPath>$(WixExtDir)\WixDependencyExtension.dll</HintPath>
|
|
<Name>WixDependencyExtension</Name>
|
|
</WixExtension>
|
|
<WixExtension Include="WixNetFxExtension">
|
|
<HintPath>$(WixExtDir)\WixNetFxExtension.dll</HintPath>
|
|
<Name>WixNetFxExtension</Name>
|
|
</WixExtension>
|
|
<WixExtension Include="WixUtilExtension">
|
|
<HintPath>$(WixExtDir)\WixUtilExtension.dll</HintPath>
|
|
<Name>WixUtilExtension</Name>
|
|
</WixExtension>
|
|
<WixExtension Include="WixUIExtension">
|
|
<HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
|
|
<Name>WixUIExtension</Name>
|
|
</WixExtension>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Include="DependencyProvider.wxs" />
|
|
<Compile Include="Product.wxs" />
|
|
<EmbeddedResource Include="Strings.wxl" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<HarvestDirectory Include="$(HarvestSource)">
|
|
<SuppressRootDirectory>true</SuppressRootDirectory>
|
|
<ComponentGroupName>CG_AspNetCoreTargetingPack</ComponentGroupName>
|
|
<DirectoryRefId>DOTNETHOME</DirectoryRefId>
|
|
<PreprocessorVariable>var.AspNetCoreTargetingPackSource</PreprocessorVariable>
|
|
</HarvestDirectory>
|
|
</ItemGroup>
|
|
|
|
<!-- TODO: https://github.com/aspnet/AspNetCore/issues/6304. harvest from TargetingPackLayoutRoot directly. Unzipping is currently required because the zip has the signed versions of .dll files. -->
|
|
<Target Name="ExtractIntermediateTargetingPack" BeforeTargets="PrepareForBuild">
|
|
<PropertyGroup>
|
|
<TargetingPackHarvestRoot Condition="'$(TargetingPackHarvestRoot)' == ''">$(InstallersOutputPath)</TargetingPackHarvestRoot>
|
|
<IntermediateTargetingPackZip>$(TargetingPackHarvestRoot)aspnetcore-targeting-pack-$(PackageVersion).zip</IntermediateTargetingPackZip>
|
|
</PropertyGroup>
|
|
|
|
<Unzip SourceFiles="$(IntermediateTargetingPackZip)" DestinationFolder="$(HarvestSource)" />
|
|
</Target>
|
|
|
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.targets))\Directory.Build.targets" />
|
|
|
|
<PropertyGroup>
|
|
<!-- Suppresses building this project completely during servicing builds. -->
|
|
<BuildDependsOn Condition="'$(IsTargetingPackBuilding)' == 'false'" />
|
|
</PropertyGroup>
|
|
</Project>
|