2016-06-28 01:26:57 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2018-10-31 20:56:32 +00:00
|
|
|
<Target Name="SetupWixProperties" DependsOnTargets="GetCurrentRuntimeInformation">
|
2017-02-23 18:37:48 +00:00
|
|
|
<!-- AcquireWix Properties -->
|
|
|
|
<PropertyGroup>
|
2018-01-02 20:37:00 +00:00
|
|
|
<WixVersion>3.10.4</WixVersion>
|
2017-02-23 18:37:48 +00:00
|
|
|
<WixDownloadUrl>https://dotnetcli.azureedge.net/build/wix/wix.$(WixVersion).zip</WixDownloadUrl>
|
2018-10-31 20:56:32 +00:00
|
|
|
<WixRoot>$(ArtifactsDir)Tools/WixTools/$(WixVersion)</WixRoot>
|
2017-02-23 18:37:48 +00:00
|
|
|
<WixDestinationPath>$(WixRoot)/WixTools.$(WixVersion).zip</WixDestinationPath>
|
|
|
|
<WixDownloadSentinel>$(WixRoot)/WixDownload.$(WixVersion).sentinel</WixDownloadSentinel>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- Generate MSI/Bundle Properties -->
|
|
|
|
<PropertyGroup>
|
2019-05-15 19:51:44 +00:00
|
|
|
<CombinedFrameworkSdkHostBundleEngineName>$(ArtifactsTmpDir)/$(ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk)-engine.exe</CombinedFrameworkSdkHostBundleEngineName>
|
2017-02-23 18:37:48 +00:00
|
|
|
|
2018-10-31 20:56:32 +00:00
|
|
|
<SdkGenerateMsiPowershellScript>$(MSBuildThisFileDirectory)packaging/windows/clisdk/generatemsi.ps1</SdkGenerateMsiPowershellScript>
|
2019-08-16 18:56:20 +00:00
|
|
|
<SdkPlaceholderGenerateMsiPowershellScript>$(MSBuildThisFileDirectory)packaging/windows/clisdk/generatesdkplaceholdermsi.ps1</SdkPlaceholderGenerateMsiPowershellScript>
|
2018-10-31 20:56:32 +00:00
|
|
|
<SdkStableFileIdForApphostTransform>$(MSBuildThisFileDirectory)packaging/windows/clisdk/stablefileidforapphosttransform.xslt</SdkStableFileIdForApphostTransform>
|
|
|
|
<SdkGenerateBundlePowershellScript>$(MSBuildThisFileDirectory)packaging/windows/clisdk/generatebundle.ps1</SdkGenerateBundlePowershellScript>
|
2019-06-10 23:00:53 +00:00
|
|
|
<GenerateNupkgPowershellScript>$(MSBuildThisFileDirectory)packaging/windows/clisdk/generatenupkg.ps1</GenerateNupkgPowershellScript>
|
2017-02-23 18:37:48 +00:00
|
|
|
|
2019-06-11 20:16:26 +00:00
|
|
|
<ToolsetInstallerNuspecFile>$(MSBuildThisFileDirectory)packaging/windows/clisdk/VS.Redist.Common.NetCore.Toolset.nuspec</ToolsetInstallerNuspecFile>
|
|
|
|
<ToolsetInstallerNupkgFile>$(ArtifactsNonShippingPackagesDir)VS.Redist.Common.NetCore.Toolset.$(Architecture).$(FullNugetVersion).nupkg</ToolsetInstallerNupkgFile>
|
2019-08-16 18:56:20 +00:00
|
|
|
<SdkPlaceholderInstallerNuspecFile>$(MSBuildThisFileDirectory)packaging/windows/clisdk/VS.Redist.Common.NetCore.SdkPlaceholder.nuspec</SdkPlaceholderInstallerNuspecFile>
|
|
|
|
<SdkPlaceholderInstallerNupkgFile>$(ArtifactsNonShippingPackagesDir)VS.Redist.Common.NetCore.SdkPlaceholder.$(Architecture).$(FullNugetVersion).nupkg</SdkPlaceholderInstallerNupkgFile>
|
2019-06-10 23:00:53 +00:00
|
|
|
<VSToolsNuspecFile>$(MSBuildThisFileDirectory)packaging/windows/clisdk/VS.Tools.Net.Core.SDK.nuspec</VSToolsNuspecFile>
|
2019-01-11 19:55:28 +00:00
|
|
|
<VSToolsNupkgFile>$(ArtifactsNonShippingPackagesDir)VS.Tools.Net.Core.SDK.$(Architecture).$(FullNugetVersion).nupkg</VSToolsNupkgFile>
|
2017-06-27 23:49:34 +00:00
|
|
|
|
2019-02-15 02:21:23 +00:00
|
|
|
<SdkResolverLayoutPath>$(ArtifactsDir)bin/SdkResolver/$(Configuration)</SdkResolverLayoutPath>
|
2019-05-15 19:51:44 +00:00
|
|
|
<VSToolsResolverNuspecFile>$(MSBuildThisFileDirectory)packaging/windows/clisdk/VS.Tools.Net.Core.SDK.Resolver.nuspec</VSToolsResolverNuspecFile>
|
2019-02-15 02:21:23 +00:00
|
|
|
<VSToolsResolverNupkgFile>$(ArtifactsNonShippingPackagesDir)VS.Tools.Net.Core.SDK.Resolver.nupkg</VSToolsResolverNupkgFile>
|
|
|
|
|
2019-06-24 20:24:27 +00:00
|
|
|
<SdkMSBuildExtensionsNuspecFile>$(MSBuildThisFileDirectory)packaging/windows/clisdk/VS.Redist.Common.Net.Core.SDK.MSBuildExtensions.nuspec</SdkMSBuildExtensionsNuspecFile>
|
2019-01-11 19:55:28 +00:00
|
|
|
<SdkMSBuildExtensionsNupkgFile>$(ArtifactsNonShippingPackagesDir)VS.Redist.Common.Net.Core.SDK.MSBuildExtensions.$(FullNugetVersion).nupkg</SdkMSBuildExtensionsNupkgFile>
|
2019-06-24 20:24:27 +00:00
|
|
|
<SdkMSBuildExtensionsSwrFile>$(ArtifactsNonShippingPackagesDir)VS.Redist.Common.Net.Core.SDK.MSBuildExtensions.swr</SdkMSBuildExtensionsSwrFile>
|
2017-02-23 18:37:48 +00:00
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<PropertyGroup>
|
2019-07-22 17:06:16 +00:00
|
|
|
<SdkMSIInstallerFile>$(ArtifactsShippingPackagesDir)$(ArtifactNameWithVersionSdk)$(InstallerExtension)</SdkMSIInstallerFile>
|
2019-08-16 21:54:47 +00:00
|
|
|
<SdkDependencyKeyName>Dotnet_CLI</SdkDependencyKeyName>
|
2019-07-30 21:50:31 +00:00
|
|
|
<Templates30MSIInstallerFile>$(ArtifactsShippingPackagesDir)dotnet-30templates-$(FullNugetVersion)-$(ProductMonikerRid)$(InstallerExtension)</Templates30MSIInstallerFile>
|
|
|
|
<Templates22MSIInstallerFile>$(ArtifactsShippingPackagesDir)dotnet-22templates-$(FullNugetVersion)-$(ProductMonikerRid)$(InstallerExtension)</Templates22MSIInstallerFile>
|
|
|
|
<Templates21MSIInstallerFile>$(ArtifactsShippingPackagesDir)dotnet-21templates-$(FullNugetVersion)-$(ProductMonikerRid)$(InstallerExtension)</Templates21MSIInstallerFile>
|
2019-08-16 18:56:20 +00:00
|
|
|
<SdkPlaceholderMSIInstallerFile>$(ArtifactsShippingPackagesDir)dotnet-sdkplaceholder-$(FullNugetVersion)-$(ProductMonikerRid)$(InstallerExtension)</SdkPlaceholderMSIInstallerFile>
|
2019-08-16 21:54:47 +00:00
|
|
|
<SdkPlaceholderDependencyKeyName>NetCore_SdkPlaceholder</SdkPlaceholderDependencyKeyName>
|
2019-07-22 17:06:16 +00:00
|
|
|
<CombinedFrameworkSdkHostMSIInstallerFile>$(ArtifactsShippingPackagesDir)$(ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk)$(BundleExtension)</CombinedFrameworkSdkHostMSIInstallerFile>
|
2019-02-19 22:21:54 +00:00
|
|
|
<SdkBundleInstallerOutputGuidString>$(ProductBandCombinedHostHostFxrFrameworkSdkName)</SdkBundleInstallerOutputGuidString>
|
2018-10-31 20:56:32 +00:00
|
|
|
|
2018-11-02 06:15:59 +00:00
|
|
|
<!--<SdkDebianIntermediateDirectory>$(IntermediateOutputPath)debian/sdk/</SdkDebianIntermediateDirectory>
|
2018-10-31 20:56:32 +00:00
|
|
|
<LayoutDirectory Condition=" '$(OSName)' == 'ubuntu' OR '$(OSName)' == 'debian' ">$(SdkDebianIntermediateDirectory)debianLayoutDirectory</LayoutDirectory>
|
|
|
|
<LayoutDirectory Condition=" '$(OSName)' != 'ubuntu' AND '$(OSName)' != 'debian' ">$(IntermediateOutputPath)layouts</LayoutDirectory>
|
|
|
|
<SdkLayoutOutputDirectory>$(LayoutDirectory)$(ArtifactNameSdk)</SdkLayoutOutputDirectory>
|
2018-11-02 06:15:59 +00:00
|
|
|
<MSBuildExtensionsOutputDirectory>$(LayoutDirectory)MSBuildExtensions</MSBuildExtensionsOutputDirectory>-->
|
2017-02-23 18:37:48 +00:00
|
|
|
</PropertyGroup>
|
2018-10-31 20:56:32 +00:00
|
|
|
</Target>
|
2016-06-28 01:26:57 +00:00
|
|
|
|
2018-10-31 20:56:32 +00:00
|
|
|
<Target Name="MsiTargetsSetupInputOutputs"
|
|
|
|
DependsOnTargets="GenerateLayout;SetupWixProperties;GetCoreSdkGitCommitInfo">
|
|
|
|
<!-- Consumed By Publish -->
|
|
|
|
<ItemGroup>
|
2019-08-16 18:56:20 +00:00
|
|
|
<GeneratedInstallers Include="$(SdkMSIInstallerFile);$(Templates30MSIInstallerFile);$(Templates22MSIInstallerFile);$(Templates21MSIInstallerFile);$(CombinedFrameworkSdkHostMSIInstallerFile);$(SdkPlaceholderMSIInstallerFile)" />
|
2018-10-31 20:56:32 +00:00
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<GenerateMsiVersion CommitCount="$(GitCommitCount)"
|
|
|
|
VersionMajor="$(VersionMajor)"
|
|
|
|
VersionMinor="$(VersionMinor)"
|
|
|
|
VersionPatch="$(VersionPatch)">
|
|
|
|
<Output TaskParameter="MsiVersion" PropertyName="MsiVersion" />
|
|
|
|
</GenerateMsiVersion>
|
|
|
|
|
2019-07-22 17:06:16 +00:00
|
|
|
<GenerateGuidFromName Name="$(SdkMSIInstallerFile)">
|
2018-10-31 20:56:32 +00:00
|
|
|
<Output TaskParameter="OutputGuid"
|
|
|
|
PropertyName="SdkInstallerUpgradeCode" />
|
|
|
|
</GenerateGuidFromName>
|
|
|
|
|
2019-07-22 17:06:16 +00:00
|
|
|
<GenerateGuidFromName Name="$(Templates30MSIInstallerFile)">
|
2019-07-22 15:55:23 +00:00
|
|
|
<Output TaskParameter="OutputGuid"
|
|
|
|
PropertyName="Templates30InstallerUpgradeCode" />
|
|
|
|
</GenerateGuidFromName>
|
|
|
|
|
2019-07-22 17:06:16 +00:00
|
|
|
<GenerateGuidFromName Name="$(Templates22MSIInstallerFile)">
|
2019-07-22 15:55:23 +00:00
|
|
|
<Output TaskParameter="OutputGuid"
|
|
|
|
PropertyName="Templates22InstallerUpgradeCode" />
|
|
|
|
</GenerateGuidFromName>
|
|
|
|
|
2019-07-22 17:06:16 +00:00
|
|
|
<GenerateGuidFromName Name="$(Templates21MSIInstallerFile)">
|
2019-07-11 00:43:29 +00:00
|
|
|
<Output TaskParameter="OutputGuid"
|
2019-07-22 15:55:23 +00:00
|
|
|
PropertyName="Templates21InstallerUpgradeCode" />
|
2019-07-11 00:43:29 +00:00
|
|
|
</GenerateGuidFromName>
|
|
|
|
|
2019-08-16 18:56:20 +00:00
|
|
|
<GenerateGuidFromName Name="$(SdkPlaceholderMSIInstallerFile)">
|
|
|
|
<Output TaskParameter="OutputGuid"
|
|
|
|
PropertyName="SdkPlaceholderInstallerUpgradeCode" />
|
|
|
|
</GenerateGuidFromName>
|
|
|
|
|
2019-02-19 22:21:54 +00:00
|
|
|
<GenerateGuidFromName Name="$(SdkBundleInstallerOutputGuidString)">
|
2018-10-31 20:56:32 +00:00
|
|
|
<Output TaskParameter="OutputGuid"
|
|
|
|
PropertyName="CombinedFrameworkSDKHostInstallerUpgradeCode" />
|
|
|
|
</GenerateGuidFromName>
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="AcquireWix"
|
|
|
|
DependsOnTargets="SetupWixProperties;MsiTargetsSetupInputOutputs"
|
|
|
|
Inputs="$(WixDownloadSentinel)"
|
|
|
|
Outputs="$(WixDestinationPath)">
|
|
|
|
|
|
|
|
<!-- Setup sentinel to take advantage of incrementality -->
|
|
|
|
<MakeDir Directories="$(WixRoot)" />
|
|
|
|
<WriteLinesToFile
|
|
|
|
File="$(WixDownloadSentinel)"
|
|
|
|
Lines="$(WixVersion)"
|
|
|
|
Overwrite="true"
|
|
|
|
Encoding="Unicode"/>
|
|
|
|
|
|
|
|
<DownloadFile
|
|
|
|
Uri="$(WixDownloadUrl)"
|
|
|
|
DestinationPath="$(WixDestinationPath)"
|
|
|
|
Overwrite="false" />
|
|
|
|
|
|
|
|
<ExtractArchiveToDirectory
|
|
|
|
SourceArchive="$(WixDestinationPath)"
|
|
|
|
DestinationDirectory="$(WixRoot)" />
|
|
|
|
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="GenerateSdkMsi"
|
|
|
|
DependsOnTargets="GenerateLayout;AcquireWix;MsiTargetsSetupInputOutputs;SetSdkBrandingInfo"
|
2019-07-11 00:43:29 +00:00
|
|
|
Condition=" '$(OS)' == 'Windows_NT' "
|
|
|
|
Inputs="$(SdkInternalLayoutPath)**/*;
|
|
|
|
$(SdkGenerateMsiPowershellScript)"
|
2019-07-22 17:06:16 +00:00
|
|
|
Outputs="$(SdkMSIInstallerFile)">
|
2018-10-31 20:56:32 +00:00
|
|
|
|
|
|
|
<Exec Command="powershell -NoProfile -NoLogo $(SdkGenerateMsiPowershellScript) ^
|
|
|
|
'$(SdkInternalLayoutPath.TrimEnd('\'))' ^
|
2019-07-22 17:06:16 +00:00
|
|
|
'$(SdkMSIInstallerFile)' ^
|
2018-09-26 20:15:34 +00:00
|
|
|
'$(WixRoot)' ^
|
2019-09-03 21:33:11 +00:00
|
|
|
'$(ToolsetBrandName)' ^
|
2018-09-26 20:15:34 +00:00
|
|
|
'$(MsiVersion)' ^
|
2019-03-01 21:07:12 +00:00
|
|
|
'$(SDKBundleVersion)' ^
|
2018-09-26 20:15:34 +00:00
|
|
|
'$(NugetVersion)' ^
|
|
|
|
'$(SdkInstallerUpgradeCode)' ^
|
2019-08-16 21:54:47 +00:00
|
|
|
'$(SdkDependencyKeyName)' ^
|
2018-09-26 20:15:34 +00:00
|
|
|
'$(Architecture)' ^
|
|
|
|
'$(SdkStableFileIdForApphostTransform)' ^
|
2018-10-31 20:56:32 +00:00
|
|
|
-InformationAction Continue" />
|
|
|
|
</Target>
|
2016-06-28 01:26:57 +00:00
|
|
|
|
2019-08-16 18:56:20 +00:00
|
|
|
<Target Name="GenerateSdkPlaceholderMsi"
|
|
|
|
DependsOnTargets="AcquireWix;MsiTargetsSetupInputOutputs"
|
|
|
|
Condition=" '$(OS)' == 'Windows_NT' "
|
|
|
|
Inputs="$(SdkPlaceholderGenerateMsiPowershellScript)"
|
|
|
|
Outputs="$(SdkPlaceholderMSIInstallerFile)">
|
|
|
|
|
|
|
|
<Exec Command="powershell -NoProfile -NoLogo $(SdkPlaceholderGenerateMsiPowershellScript) ^
|
|
|
|
'$(SdkPlaceholderMSIInstallerFile)' ^
|
|
|
|
'$(WixRoot)' ^
|
|
|
|
'$(SdkBrandName)' ^
|
|
|
|
'$(MsiVersion)' ^
|
|
|
|
'$(SDKBundleVersion)' ^
|
|
|
|
'$(NugetVersion)' ^
|
|
|
|
'$(SdkPlaceholderInstallerUpgradeCode)' ^
|
2019-08-16 21:54:47 +00:00
|
|
|
'$(SdkPlaceholderDependencyKeyName)' ^
|
2019-08-16 18:56:20 +00:00
|
|
|
'$(Architecture)' ^
|
|
|
|
-InformationAction Continue" />
|
|
|
|
</Target>
|
|
|
|
|
2019-07-22 15:55:23 +00:00
|
|
|
<Target Name="GenerateTemplatesMsis"
|
|
|
|
DependsOnTargets="GenerateLayout;AcquireWix;MsiTargetsSetupInputOutputs;SetSdkBrandingInfo;SetupTemplatesMsis"
|
|
|
|
Condition="$(ProductMonikerRid.StartsWith('win')) And !$(Architecture.StartsWith('arm'))"
|
|
|
|
Inputs="@(TemplatesMsiComponent->'%(LayoutPath)');
|
|
|
|
$(TemplatesGenerateMsiPowershellScript)"
|
2019-07-22 17:06:16 +00:00
|
|
|
Outputs="@(TemplatesMsiComponent->'%(MSIInstallerFile)')">
|
2019-07-11 00:43:29 +00:00
|
|
|
|
|
|
|
<Exec Command="powershell -NoProfile -NoLogo $(TemplatesGenerateMsiPowershellScript) ^
|
2019-07-24 16:08:11 +00:00
|
|
|
'%(TemplatesMsiComponent.LayoutPath)' ^
|
|
|
|
'@(TemplatesMsiComponent->'%(MSIInstallerFile)')' ^
|
2019-07-11 00:43:29 +00:00
|
|
|
'$(WixRoot)' ^
|
2019-07-22 15:55:23 +00:00
|
|
|
'@(TemplatesMsiComponent->'%(BrandName)')' ^
|
|
|
|
'@(TemplatesMsiComponent->'%(MsiVersion)')' ^
|
|
|
|
'@(TemplatesMsiComponent->'%(MsiVersion)')' ^
|
2019-07-30 21:50:31 +00:00
|
|
|
'$(FullNugetVersion)' ^
|
2019-07-22 15:55:23 +00:00
|
|
|
'@(TemplatesMsiComponent->'%(UpgradeCode)')' ^
|
2019-08-16 21:54:47 +00:00
|
|
|
'@(TemplatesMsiComponent->'%(DependencyKeyName)')' ^
|
2019-07-11 00:43:29 +00:00
|
|
|
'$(Architecture)' ^
|
|
|
|
-InformationAction Continue" />
|
|
|
|
</Target>
|
|
|
|
|
2019-07-22 15:55:23 +00:00
|
|
|
<Target Name="SetupTemplatesMsis">
|
|
|
|
<PropertyGroup>
|
|
|
|
<TemplatesGenerateMsiPowershellScript>$(MSBuildThisFileDirectory)packaging/windows/clisdk/generatetemplatesmsi.ps1</TemplatesGenerateMsiPowershellScript>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<TemplatesMsiComponent Include="NetCore30TemplatesMsi">
|
|
|
|
<LayoutPath>$(Templates30LayoutPath.TrimEnd('\'))</LayoutPath>
|
2019-07-22 17:06:16 +00:00
|
|
|
<MSIInstallerFile>$(Templates30MSIInstallerFile)</MSIInstallerFile>
|
2019-07-24 16:08:11 +00:00
|
|
|
<BrandName>$(BundledTemplates30BrandName)</BrandName>
|
2019-07-22 15:55:23 +00:00
|
|
|
<MsiVersion>$(BundledTemplates30MsiVersion)</MsiVersion>
|
|
|
|
<UpgradeCode>$(Templates30InstallerUpgradeCode)</UpgradeCode>
|
2019-08-16 21:54:47 +00:00
|
|
|
<DependencyKeyName>NetCore_Templates_3.0</DependencyKeyName>
|
2019-07-22 15:55:23 +00:00
|
|
|
</TemplatesMsiComponent>
|
|
|
|
<TemplatesMsiComponent Include="NetCore22TemplatesMsi">
|
|
|
|
<LayoutPath>$(Templates22LayoutPath.TrimEnd('\'))</LayoutPath>
|
2019-07-22 17:06:16 +00:00
|
|
|
<MSIInstallerFile>$(Templates22MSIInstallerFile)</MSIInstallerFile>
|
2019-07-24 16:08:11 +00:00
|
|
|
<BrandName>$(BundledTemplates22BrandName)</BrandName>
|
2019-07-22 15:55:23 +00:00
|
|
|
<MsiVersion>$(BundledTemplates22MsiVersion)</MsiVersion>
|
|
|
|
<UpgradeCode>$(Templates22InstallerUpgradeCode)</UpgradeCode>
|
2019-08-16 21:54:47 +00:00
|
|
|
<DependencyKeyName>NetCore_Templates_2.2</DependencyKeyName>
|
2019-07-22 15:55:23 +00:00
|
|
|
</TemplatesMsiComponent>
|
|
|
|
<TemplatesMsiComponent Include="NetCore21TemplatesMsi">
|
|
|
|
<LayoutPath>$(Templates21LayoutPath.TrimEnd('\'))</LayoutPath>
|
2019-07-22 17:06:16 +00:00
|
|
|
<MSIInstallerFile>$(Templates21MSIInstallerFile)</MSIInstallerFile>
|
2019-07-24 16:08:11 +00:00
|
|
|
<BrandName>$(BundledTemplates21BrandName)</BrandName>
|
2019-07-22 15:55:23 +00:00
|
|
|
<MsiVersion>$(BundledTemplates21MsiVersion)</MsiVersion>
|
|
|
|
<UpgradeCode>$(Templates21InstallerUpgradeCode)</UpgradeCode>
|
2019-08-16 21:54:47 +00:00
|
|
|
<DependencyKeyName>NetCore_Templates_2.1</DependencyKeyName>
|
2019-07-22 15:55:23 +00:00
|
|
|
</TemplatesMsiComponent>
|
|
|
|
</ItemGroup>
|
|
|
|
</Target>
|
|
|
|
|
2018-10-31 20:56:32 +00:00
|
|
|
<Target Name="GenerateSdkBundle"
|
2019-07-22 15:55:23 +00:00
|
|
|
DependsOnTargets="GenerateLayout;AcquireWix;MsiTargetsSetupInputOutputs;GenerateSdkMsi;SignSdkMsi;GenerateTemplatesMsis;SignTemplatesMsis"
|
2019-07-11 00:43:29 +00:00
|
|
|
Condition=" '$(OS)' == 'Windows_NT' "
|
2019-07-22 17:06:16 +00:00
|
|
|
Inputs="$(SdkMSIInstallerFile);
|
2016-06-28 01:26:57 +00:00
|
|
|
$(DownloadedSharedFrameworkInstallerFile);
|
|
|
|
$(DownloadedHostFxrInstallerFile);
|
|
|
|
$(DownloadedSharedHostInstallerFile);
|
|
|
|
$(SdkGenerateBundlePowershellScript)"
|
2019-07-22 17:06:16 +00:00
|
|
|
Outputs="$(CombinedFrameworkSdkHostMSIInstallerFile)">
|
2018-10-31 20:56:32 +00:00
|
|
|
|
|
|
|
<Exec Command="powershell -NoProfile -NoLogo $(SdkGenerateBundlePowershellScript) ^
|
2019-07-22 17:06:16 +00:00
|
|
|
'$(SdkMSIInstallerFile)' ^
|
2019-09-09 19:38:32 +00:00
|
|
|
'$(DownloadsFolder)$(DownloadedAspNetCoreSharedFxWixLibFileName)' ^
|
2018-12-06 18:49:10 +00:00
|
|
|
'$(DownloadsFolder)$(DownloadedSharedFrameworkInstallerFileName)' ^
|
|
|
|
'$(DownloadsFolder)$(DownloadedHostFxrInstallerFileName)' ^
|
|
|
|
'$(DownloadsFolder)$(DownloadedSharedHostInstallerFileName)' ^
|
|
|
|
'$(DownloadsFolder)$(DownloadedWinFormsAndWpfSharedFrameworkInstallerFileName)' ^
|
2019-02-21 00:36:11 +00:00
|
|
|
'$(DownloadsFolder)$(DownloadedNetCoreAppTargetingPackInstallerFileName)' ^
|
2019-04-10 15:55:46 +00:00
|
|
|
'$(DownloadsFolder)$(DownloadedNetStandardTargetingPackInstallerFileName)' ^
|
2019-04-17 19:53:05 +00:00
|
|
|
'$(DownloadsFolder)$(DownloadedNetCoreAppHostPackInstallerFileName)' ^
|
2019-02-21 00:36:11 +00:00
|
|
|
'$(DownloadsFolder)$(DownloadedAspNetTargetingPackInstallerFileName)' ^
|
2019-03-19 21:15:32 +00:00
|
|
|
'$(DownloadsFolder)$(DownloadedWindowsDesktopTargetingPackInstallerFileName)' ^
|
2019-07-22 17:06:16 +00:00
|
|
|
'$(Templates30MSIInstallerFile)' ^
|
|
|
|
'$(CombinedFrameworkSdkHostMSIInstallerFile)' ^
|
2018-09-26 20:15:34 +00:00
|
|
|
'$(WixRoot)' ^
|
|
|
|
'$(SdkBrandName)' ^
|
|
|
|
'$(MsiVersion)' ^
|
2019-03-01 21:07:12 +00:00
|
|
|
'$(SDKBundleVersion)' ^
|
2018-09-26 20:15:34 +00:00
|
|
|
'$(NugetVersion)' ^
|
2018-12-26 18:46:40 +00:00
|
|
|
'$(MicrosoftWindowsDesktopPackageVersion)' ^
|
2018-09-26 20:15:34 +00:00
|
|
|
'$(CombinedFrameworkSDKHostInstallerUpgradeCode)' ^
|
2019-08-16 21:54:47 +00:00
|
|
|
'$(SdkDependencyKeyName)' ^
|
2018-09-26 20:15:34 +00:00
|
|
|
'$(Architecture)' ^
|
|
|
|
'$(MicrosoftNETCoreAppPackageVersion)' ^
|
2018-10-31 20:56:32 +00:00
|
|
|
'$(AspNetCoreVersion)' ^
|
2019-02-19 22:21:54 +00:00
|
|
|
'$(CliProductBandVersion)' ^
|
2018-10-31 20:56:32 +00:00
|
|
|
-InformationAction Continue " />
|
|
|
|
</Target>
|
|
|
|
|
2019-06-10 23:00:53 +00:00
|
|
|
<Target Name="GenerateToolsetNupkg"
|
|
|
|
DependsOnTargets="GenerateLayout;MsiTargetsSetupInputOutputs;GenerateSdkMsi;SignSdkMsi"
|
2019-07-11 00:43:29 +00:00
|
|
|
Condition=" '$(OS)' == 'Windows_NT' "
|
2019-07-22 17:06:16 +00:00
|
|
|
Inputs="$(SdkMSIInstallerFile);
|
2019-06-10 23:00:53 +00:00
|
|
|
$(ToolsetInstallerNuspecFile);
|
|
|
|
$(GenerateNupkgPowershellScript)"
|
|
|
|
Outputs="$(ToolsetInstallerNupkgFile)">
|
2016-10-05 20:53:15 +00:00
|
|
|
|
2019-06-10 23:00:53 +00:00
|
|
|
<Exec Command="powershell -NoProfile -NoLogo $(GenerateNupkgPowershellScript) ^
|
2019-07-22 15:55:23 +00:00
|
|
|
'$(ArtifactsDir)' ^
|
2019-07-22 17:06:16 +00:00
|
|
|
'$(SdkMSIInstallerFile)' ^
|
2018-09-26 20:15:34 +00:00
|
|
|
'$(FullNugetVersion)' ^
|
2019-06-10 23:00:53 +00:00
|
|
|
'$(ToolsetInstallerNuspecFile)' ^
|
|
|
|
'$(ToolsetInstallerNupkgFile)' ^
|
|
|
|
'$(Architecture)' ^
|
2019-09-03 21:33:11 +00:00
|
|
|
'$(MajorMinorVersion)'" />
|
2018-10-31 20:56:32 +00:00
|
|
|
</Target>
|
2016-10-05 20:53:15 +00:00
|
|
|
|
2019-08-16 18:56:20 +00:00
|
|
|
<Target Name="GenerateSdkPlaceholderNupkg"
|
|
|
|
DependsOnTargets="MsiTargetsSetupInputOutputs;GenerateSdkPlaceholderMsi;SignSdkPlaceholderMsi"
|
|
|
|
Condition=" '$(OS)' == 'Windows_NT' "
|
|
|
|
Inputs="$(SdkPlaceholderMSIInstallerFile);
|
|
|
|
$(SdkPlaceholderInstallerNuspecFile);
|
|
|
|
$(GenerateNupkgPowershellScript)"
|
|
|
|
Outputs="$(SdkPlaceholderInstallerNupkgFile)">
|
|
|
|
|
|
|
|
<Exec Command="powershell -NoProfile -NoLogo $(GenerateNupkgPowershellScript) ^
|
|
|
|
'$(ArtifactsDir)' ^
|
|
|
|
'$(SdkPlaceholderMSIInstallerFile)' ^
|
|
|
|
'$(FullNugetVersion)' ^
|
|
|
|
'$(SdkPlaceholderInstallerNuspecFile)' ^
|
|
|
|
'$(SdkPlaceholderInstallerNupkgFile)' ^
|
|
|
|
'$(Architecture)' ^
|
|
|
|
'$(MajorMinorVersion)'" />
|
|
|
|
</Target>
|
|
|
|
|
2019-07-22 15:55:23 +00:00
|
|
|
<Target Name="GenerateTemplatesNupkgs"
|
|
|
|
DependsOnTargets="GenerateLayout;MsiTargetsSetupInputOutputs;GenerateTemplatesMsis;SignTemplatesMsis;SetupTemplatesNupkgs"
|
|
|
|
Condition="$(ProductMonikerRid.StartsWith('win')) And !$(Architecture.StartsWith('arm'))"
|
2019-07-22 17:06:16 +00:00
|
|
|
Inputs="@(TemplatesNupkgComponent->'%(MSIInstallerFile)');
|
2019-07-11 00:43:29 +00:00
|
|
|
$(TemplatesInstallerNuspecFile);
|
|
|
|
$(GenerateNupkgPowershellScript)"
|
2019-07-22 15:55:23 +00:00
|
|
|
Outputs="@(TemplatesNupkgComponent->'%(NupkgFile)')">
|
2019-07-11 00:43:29 +00:00
|
|
|
|
|
|
|
<Exec Command="powershell -NoProfile -NoLogo $(GenerateNupkgPowershellScript) ^
|
2019-07-22 15:55:23 +00:00
|
|
|
'$(ArtifactsDir)' ^
|
2019-07-22 17:06:16 +00:00
|
|
|
'%(TemplatesNupkgComponent.MSIInstallerFile)' ^
|
2019-07-30 21:50:31 +00:00
|
|
|
'$(FullNugetVersion)' ^
|
2019-07-11 00:43:29 +00:00
|
|
|
'$(TemplatesInstallerNuspecFile)' ^
|
2019-07-22 15:55:23 +00:00
|
|
|
'@(TemplatesNupkgComponent->'%(NupkgFile)')' ^
|
2019-07-24 16:08:11 +00:00
|
|
|
'$(Architecture)' ^
|
|
|
|
'@(TemplatesNupkgComponent->'%(MajorMinorVersion)')'" />
|
2019-07-22 15:55:23 +00:00
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="SetupTemplatesNupkgs">
|
|
|
|
<PropertyGroup>
|
|
|
|
<TemplatesInstallerNuspecFile>$(MSBuildThisFileDirectory)packaging/windows/clisdk/VS.Redist.Common.NetCore.Templates.nuspec</TemplatesInstallerNuspecFile>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<TemplatesNupkgComponent Include="NetCore30TemplatesNupkg">
|
2019-07-22 17:06:16 +00:00
|
|
|
<MSIInstallerFile>$(Templates30MSIInstallerFile)</MSIInstallerFile>
|
2019-07-30 21:50:31 +00:00
|
|
|
<NupkgFile>$(ArtifactsNonShippingPackagesDir)VS.Redist.Common.NetCore.Templates.$(BundledTemplates30MajorMinorVersion).$(FullNugetVersion).nupkg</NupkgFile>
|
2019-07-24 16:08:11 +00:00
|
|
|
<MajorMinorVersion>$(BundledTemplates30MajorMinorVersion)</MajorMinorVersion>
|
2019-07-22 15:55:23 +00:00
|
|
|
</TemplatesNupkgComponent>
|
|
|
|
<TemplatesNupkgComponent Include="NetCore22TemplatesNupkg">
|
2019-07-22 17:06:16 +00:00
|
|
|
<MSIInstallerFile>$(Templates22MSIInstallerFile)</MSIInstallerFile>
|
2019-07-30 21:50:31 +00:00
|
|
|
<NupkgFile>$(ArtifactsNonShippingPackagesDir)VS.Redist.Common.NetCore.Templates.$(BundledTemplates22MajorMinorVersion).$(FullNugetVersion).nupkg</NupkgFile>
|
2019-07-24 16:08:11 +00:00
|
|
|
<MajorMinorVersion>$(BundledTemplates22MajorMinorVersion)</MajorMinorVersion>
|
2019-07-22 15:55:23 +00:00
|
|
|
</TemplatesNupkgComponent>
|
|
|
|
<TemplatesNupkgComponent Include="NetCore21TemplatesNupkg">
|
2019-07-22 17:06:16 +00:00
|
|
|
<MSIInstallerFile>$(Templates21MSIInstallerFile)</MSIInstallerFile>
|
2019-07-30 21:50:31 +00:00
|
|
|
<NupkgFile>$(ArtifactsNonShippingPackagesDir)VS.Redist.Common.NetCore.Templates.$(BundledTemplates21MajorMinorVersion).$(FullNugetVersion).nupkg</NupkgFile>
|
2019-07-24 16:08:11 +00:00
|
|
|
<MajorMinorVersion>$(BundledTemplates21MajorMinorVersion)</MajorMinorVersion>
|
2019-07-22 15:55:23 +00:00
|
|
|
</TemplatesNupkgComponent>
|
|
|
|
</ItemGroup>
|
2019-07-11 00:43:29 +00:00
|
|
|
</Target>
|
|
|
|
|
2019-01-09 00:02:47 +00:00
|
|
|
<Target Name="GenerateVSToolsNupkg"
|
2019-06-10 23:00:53 +00:00
|
|
|
DependsOnTargets="GenerateLayout;MsiTargetsSetupInputOutputs"
|
2019-07-11 00:43:29 +00:00
|
|
|
Condition=" '$(OS)' == 'Windows_NT' and '$(Architecture)' == 'x86' "
|
2019-01-09 00:02:47 +00:00
|
|
|
Inputs="$(RedistLayoutPath)/**/*;
|
|
|
|
$(VSToolsNuspecFile);
|
2019-06-10 23:00:53 +00:00
|
|
|
$(GenerateNupkgPowershellScript)"
|
2019-01-09 00:02:47 +00:00
|
|
|
Outputs="$(VSToolsNupkgFile)">
|
|
|
|
|
2019-06-10 23:00:53 +00:00
|
|
|
<Exec Command="powershell -NoProfile -NoLogo $(GenerateNupkgPowershellScript) ^
|
2019-07-22 15:55:23 +00:00
|
|
|
'$(ArtifactsDir)' ^
|
|
|
|
'$(RedistLayoutPath.TrimEnd('\'))' ^
|
|
|
|
'$(FullNugetVersion)' ^
|
|
|
|
'$(VSToolsNuspecFile)' ^
|
|
|
|
'$(VSToolsNupkgFile)' ^
|
|
|
|
'$(Architecture)'" />
|
2019-01-09 00:02:47 +00:00
|
|
|
</Target>
|
|
|
|
|
2019-02-15 02:21:23 +00:00
|
|
|
<Target Name="GenerateVSToolsResolverNupkg"
|
2019-06-10 23:00:53 +00:00
|
|
|
DependsOnTargets="GenerateLayout;MsiTargetsSetupInputOutputs"
|
2019-07-11 00:43:29 +00:00
|
|
|
Condition=" '$(OS)' == 'Windows_NT' and '$(Architecture)' == 'x86' "
|
2019-02-15 02:21:23 +00:00
|
|
|
Inputs="$(SdkResolverLayoutPath)/**/*;
|
|
|
|
$(VSToolsResolverNuspecFile);
|
2019-06-10 23:00:53 +00:00
|
|
|
$(GenerateNupkgPowershellScript)"
|
2019-02-15 02:21:23 +00:00
|
|
|
Outputs="$(VSToolsResolverNupkgFile)">
|
|
|
|
|
2019-06-10 23:00:53 +00:00
|
|
|
<Exec Command="powershell -NoProfile -NoLogo $(GenerateNupkgPowershellScript) ^
|
2019-07-22 15:55:23 +00:00
|
|
|
'$(ArtifactsDir)' ^
|
|
|
|
'$(SdkResolverLayoutPath.TrimEnd('\'))' ^
|
|
|
|
'$(FullNugetVersion)' ^
|
|
|
|
'$(VSToolsResolverNuspecFile)' ^
|
|
|
|
'$(VSToolsResolverNupkgFile)'" />
|
2019-02-15 02:21:23 +00:00
|
|
|
</Target>
|
|
|
|
|
2018-10-31 20:56:32 +00:00
|
|
|
<Target Name="GenerateSdkMSBuildExtensionsNupkg"
|
2019-06-24 20:24:27 +00:00
|
|
|
DependsOnTargets="GenerateLayout;GenerateMSBuildExtensions;MsiTargetsSetupInputOutputs"
|
2018-10-31 20:56:32 +00:00
|
|
|
Condition=" '$(OS)' == 'Windows_NT' And '$(Architecture)' == 'x64' "
|
|
|
|
Inputs="$(MSBuildExtensionsLayoutDirectory)/**/*;
|
2019-06-10 23:00:53 +00:00
|
|
|
$(SdkMSBuildExtensionsNuspecFile);
|
|
|
|
$(GenerateNupkgPowershellScript)"
|
2018-10-31 20:56:32 +00:00
|
|
|
Outputs="$(SdkMSBuildExtensionsNupkgFile);$(SdkMSBuildExtensionsSwrFile)">
|
2017-03-24 00:25:40 +00:00
|
|
|
|
2019-06-24 20:24:27 +00:00
|
|
|
<Exec Command="powershell -NoProfile -NoLogo $(GenerateNupkgPowershellScript) ^
|
2019-07-22 15:55:23 +00:00
|
|
|
'$(ArtifactsDir)' ^
|
2019-06-24 20:24:27 +00:00
|
|
|
'$(MSBuildExtensionsLayoutDirectory.TrimEnd('\'))' ^
|
2018-09-26 20:15:34 +00:00
|
|
|
'$(FullNugetVersion)' ^
|
|
|
|
'$(SdkMSBuildExtensionsNuspecFile)' ^
|
2017-03-24 00:25:40 +00:00
|
|
|
'$(SdkMSBuildExtensionsNupkgFile)'" />
|
2017-06-09 18:18:46 +00:00
|
|
|
|
|
|
|
<GenerateMSBuildExtensionsSWR MSBuildExtensionsLayoutDirectory="$(MSBuildExtensionsLayoutDirectory)"
|
2019-06-24 20:24:27 +00:00
|
|
|
OutputFile="$(SdkMSBuildExtensionsSwrFile)"/>
|
2018-10-31 20:56:32 +00:00
|
|
|
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="GenerateMsis"
|
|
|
|
DependsOnTargets="GenerateLayout;
|
2016-06-28 01:26:57 +00:00
|
|
|
MsiTargetsSetupInputOutputs;
|
|
|
|
AcquireWix;
|
|
|
|
GenerateSdkMsi;
|
2018-12-06 18:49:10 +00:00
|
|
|
SignSdkMsi;
|
2019-07-22 15:55:23 +00:00
|
|
|
GenerateTemplatesMsis;
|
|
|
|
SignTemplatesMsis;
|
2016-06-28 01:26:57 +00:00
|
|
|
GenerateSdkBundle;
|
2018-12-06 18:49:10 +00:00
|
|
|
SignSdkBundle;
|
2019-08-16 18:56:20 +00:00
|
|
|
GenerateSdkPlaceholderMsi;
|
|
|
|
SignSdkPlaceholderMsi;
|
2019-06-10 23:00:53 +00:00
|
|
|
GenerateToolsetNupkg;
|
2019-07-22 15:55:23 +00:00
|
|
|
GenerateTemplatesNupkgs;
|
2019-08-16 18:56:20 +00:00
|
|
|
GenerateSdkPlaceholderNupkg;
|
2019-01-09 00:02:47 +00:00
|
|
|
GenerateVSToolsNupkg;
|
2019-02-15 02:21:23 +00:00
|
|
|
GenerateVSToolsResolverNupkg;
|
2017-10-13 18:52:47 +00:00
|
|
|
GenerateSdkMSBuildExtensionsNupkg"
|
2019-07-11 00:43:29 +00:00
|
|
|
Condition=" '$(OS)' == 'Windows_NT' and !$(Architecture.StartsWith('arm')) " />
|
2016-06-28 01:26:57 +00:00
|
|
|
|
2018-12-07 02:22:29 +00:00
|
|
|
|
2016-06-28 01:26:57 +00:00
|
|
|
</Project>
|