![Matt Mitchell](/assets/img/avatar_default.png)
Makes the following artifacts non-shipping: - template msis - sdkplaceholders - sdk-internal archives For now these have been preserved as non-shipping rather than not published at all. They all get packaged up in the VS insertion nupkgs, so I think in reality we don't need them at all.
458 lines
26 KiB
XML
458 lines
26 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Target Name="SetupWixProperties" DependsOnTargets="GetCurrentRuntimeInformation">
|
|
<!-- AcquireWix Properties -->
|
|
<PropertyGroup>
|
|
<WixVersion>3.10.4</WixVersion>
|
|
<WixDownloadUrl>https://dotnetcli.azureedge.net/build/wix/wix.$(WixVersion).zip</WixDownloadUrl>
|
|
<WixRoot>$(ArtifactsDir)Tools/WixTools/$(WixVersion)</WixRoot>
|
|
<WixDestinationPath>$(WixRoot)/WixTools.$(WixVersion).zip</WixDestinationPath>
|
|
<WixDownloadSentinel>$(WixRoot)/WixDownload.$(WixVersion).sentinel</WixDownloadSentinel>
|
|
</PropertyGroup>
|
|
|
|
<!-- Generate MSI/Bundle Properties -->
|
|
<PropertyGroup>
|
|
<CombinedFrameworkSdkHostBundleEngineName>$(ArtifactsTmpDir)/$(ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk)-engine.exe</CombinedFrameworkSdkHostBundleEngineName>
|
|
|
|
<SdkGenerateMsiPowershellScript>$(MSBuildThisFileDirectory)packaging/windows/clisdk/generatemsi.ps1</SdkGenerateMsiPowershellScript>
|
|
<SdkPlaceholderGenerateMsiPowershellScript>$(MSBuildThisFileDirectory)packaging/windows/clisdk/generatesdkplaceholdermsi.ps1</SdkPlaceholderGenerateMsiPowershellScript>
|
|
<SdkStableFileIdForApphostTransform>$(MSBuildThisFileDirectory)packaging/windows/clisdk/stablefileidforapphosttransform.xslt</SdkStableFileIdForApphostTransform>
|
|
<SdkGenerateBundlePowershellScript>$(MSBuildThisFileDirectory)packaging/windows/clisdk/generatebundle.ps1</SdkGenerateBundlePowershellScript>
|
|
<GenerateNupkgPowershellScript>$(MSBuildThisFileDirectory)packaging/windows/clisdk/generatenupkg.ps1</GenerateNupkgPowershellScript>
|
|
|
|
<ToolsetInstallerNuspecFile>$(MSBuildThisFileDirectory)packaging/windows/clisdk/VS.Redist.Common.NetCore.Toolset.nuspec</ToolsetInstallerNuspecFile>
|
|
<ToolsetInstallerNupkgFile>$(ArtifactsNonShippingPackagesDir)VS.Redist.Common.NetCore.Toolset.$(Architecture).$(FullNugetVersion).nupkg</ToolsetInstallerNupkgFile>
|
|
<SdkPlaceholderInstallerNuspecFile>$(MSBuildThisFileDirectory)packaging/windows/clisdk/VS.Redist.Common.NetCore.SdkPlaceholder.nuspec</SdkPlaceholderInstallerNuspecFile>
|
|
<SdkPlaceholderInstallerNupkgFile>$(ArtifactsNonShippingPackagesDir)VS.Redist.Common.NetCore.SdkPlaceholder.$(Architecture).$(FullNugetVersion).nupkg</SdkPlaceholderInstallerNupkgFile>
|
|
<VSToolsNuspecFile>$(MSBuildThisFileDirectory)packaging/windows/clisdk/VS.Tools.Net.Core.SDK.nuspec</VSToolsNuspecFile>
|
|
<VSToolsNupkgFile>$(ArtifactsNonShippingPackagesDir)VS.Tools.Net.Core.SDK.$(Architecture).$(FullNugetVersion).nupkg</VSToolsNupkgFile>
|
|
|
|
<SdkResolverLayoutPath>$(ArtifactsDir)bin/SdkResolver/$(Configuration)</SdkResolverLayoutPath>
|
|
<VSToolsResolverNuspecFile>$(MSBuildThisFileDirectory)packaging/windows/clisdk/VS.Tools.Net.Core.SDK.Resolver.nuspec</VSToolsResolverNuspecFile>
|
|
<VSToolsResolverNupkgFile>$(ArtifactsNonShippingPackagesDir)VS.Tools.Net.Core.SDK.Resolver.nupkg</VSToolsResolverNupkgFile>
|
|
|
|
<SdkMSBuildExtensionsNuspecFile>$(MSBuildThisFileDirectory)packaging/windows/clisdk/VS.Redist.Common.Net.Core.SDK.MSBuildExtensions.nuspec</SdkMSBuildExtensionsNuspecFile>
|
|
<SdkMSBuildExtensionsNupkgFile>$(ArtifactsNonShippingPackagesDir)VS.Redist.Common.Net.Core.SDK.MSBuildExtensions.$(FullNugetVersion).nupkg</SdkMSBuildExtensionsNupkgFile>
|
|
<SdkMSBuildExtensionsSwrFile>$(ArtifactsNonShippingPackagesDir)VS.Redist.Common.Net.Core.SDK.MSBuildExtensions.swr</SdkMSBuildExtensionsSwrFile>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<SdkMSIInstallerFile>$(ArtifactsNonShippingPackagesDir)$(ArtifactNameWithVersionSdk)$(InstallerExtension)</SdkMSIInstallerFile>
|
|
<SdkDependencyKeyName>Dotnet_CLI</SdkDependencyKeyName>
|
|
<Templates50MSIInstallerFile>$(ArtifactsNonShippingPackagesDir)dotnet-50templates-$(FullNugetVersion)-$(ProductMonikerRid)$(InstallerExtension)</Templates50MSIInstallerFile>
|
|
<Templates31MSIInstallerFile>$(ArtifactsNonShippingPackagesDir)dotnet-31templates-$(FullNugetVersion)-$(ProductMonikerRid)$(InstallerExtension)</Templates31MSIInstallerFile>
|
|
<Templates30MSIInstallerFile>$(ArtifactsNonShippingPackagesDir)dotnet-30templates-$(FullNugetVersion)-$(ProductMonikerRid)$(InstallerExtension)</Templates30MSIInstallerFile>
|
|
<Templates21MSIInstallerFile>$(ArtifactsNonShippingPackagesDir)dotnet-21templates-$(FullNugetVersion)-$(ProductMonikerRid)$(InstallerExtension)</Templates21MSIInstallerFile>
|
|
<SdkPlaceholderMSIInstallerFile>$(ArtifactsNonShippingPackagesDir)dotnet-sdkplaceholder-$(FullNugetVersion)-$(ProductMonikerRid)$(InstallerExtension)</SdkPlaceholderMSIInstallerFile>
|
|
<SdkPlaceholderDependencyKeyName>NetCore_SdkPlaceholder</SdkPlaceholderDependencyKeyName>
|
|
<CombinedFrameworkSdkHostMSIInstallerFile>$(ArtifactsShippingPackagesDir)$(ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk)$(BundleExtension)</CombinedFrameworkSdkHostMSIInstallerFile>
|
|
<SdkBundleInstallerOutputGuidString>$(ProductBandCombinedHostHostFxrFrameworkSdkName)</SdkBundleInstallerOutputGuidString>
|
|
|
|
<!--<SdkDebianIntermediateDirectory>$(IntermediateOutputPath)debian/sdk/</SdkDebianIntermediateDirectory>
|
|
<LayoutDirectory Condition=" '$(OSName)' == 'ubuntu' OR '$(OSName)' == 'debian' ">$(SdkDebianIntermediateDirectory)debianLayoutDirectory</LayoutDirectory>
|
|
<LayoutDirectory Condition=" '$(OSName)' != 'ubuntu' AND '$(OSName)' != 'debian' ">$(IntermediateOutputPath)layouts</LayoutDirectory>
|
|
<SdkLayoutOutputDirectory>$(LayoutDirectory)$(ArtifactNameSdk)</SdkLayoutOutputDirectory>
|
|
<MSBuildExtensionsOutputDirectory>$(LayoutDirectory)MSBuildExtensions</MSBuildExtensionsOutputDirectory>-->
|
|
</PropertyGroup>
|
|
|
|
<Exec Command="git rev-list --count HEAD"
|
|
ConsoleToMSBuild="true"
|
|
Condition=" '$(GitCommitCount)' == '' ">
|
|
<Output TaskParameter="ConsoleOutput" PropertyName="GitCommitCount" />
|
|
</Exec>
|
|
|
|
<Error Condition=" '$(OfficialBuild)' == 'true' And '$(_PatchNumber)' == '' "
|
|
Text="_PatchNumber should not be empty in an official build. Check if there were changes in Arcade." />
|
|
|
|
<PropertyGroup>
|
|
<GitCommitCount>$(GitCommitCount.PadLeft(6,'0'))</GitCommitCount>
|
|
|
|
<!-- This number comes from arcade and combines the date based build number id and the revision (incremental number per day) -->
|
|
<CombinedBuildNumberAndRevision>$(_PatchNumber)</CombinedBuildNumberAndRevision>
|
|
<!-- Fallback to commit count when patch number is not set. This happens only during CI. -->
|
|
<CombinedBuildNumberAndRevision Condition=" '$(CombinedBuildNumberAndRevision)' == '' ">$(GitCommitCount)</CombinedBuildNumberAndRevision>
|
|
|
|
<!-- This number comes from arcade and combines the date based build number id and the revision (incremental number per day) -->
|
|
<SDKBundleVersion>$(FileVersion)</SDKBundleVersion>
|
|
<!-- Fallback to commit count when patch number is not set. This happens only during CI. -->
|
|
<SDKBundleVersion Condition=" '$(SDKBundleVersion)' == '' ">$(VersionPrefix).$(CombinedBuildNumberAndRevision)</SDKBundleVersion>
|
|
</PropertyGroup>
|
|
</Target>
|
|
|
|
<Target Name="MsiTargetsSetupInputOutputs"
|
|
DependsOnTargets="GenerateLayout;SetupWixProperties">
|
|
<!-- Consumed By Publish -->
|
|
<ItemGroup>
|
|
<GeneratedInstallers Include="$(SdkMSIInstallerFile);$(Templates50MSIInstallerFile);$(Templates31MSIInstallerFile);$(Templates30MSIInstallerFile);$(Templates21MSIInstallerFile);$(CombinedFrameworkSdkHostMSIInstallerFile);$(SdkPlaceholderMSIInstallerFile)" />
|
|
</ItemGroup>
|
|
|
|
<GenerateMsiVersion VersionRevision="$(CombinedBuildNumberAndRevision)"
|
|
VersionMajor="$(VersionMajor)"
|
|
VersionMinor="$(VersionMinor)"
|
|
VersionPatch="$(VersionFeature)">
|
|
<Output TaskParameter="MsiVersion" PropertyName="MsiVersion" />
|
|
</GenerateMsiVersion>
|
|
|
|
<GenerateGuidFromName Name="$(SdkMSIInstallerFile)">
|
|
<Output TaskParameter="OutputGuid"
|
|
PropertyName="SdkInstallerUpgradeCode" />
|
|
</GenerateGuidFromName>
|
|
|
|
<GenerateGuidFromName Name="$(Templates50MSIInstallerFile)">
|
|
<Output TaskParameter="OutputGuid"
|
|
PropertyName="Templates50InstallerUpgradeCode" />
|
|
</GenerateGuidFromName>
|
|
|
|
<GenerateGuidFromName Name="$(Templates31MSIInstallerFile)">
|
|
<Output TaskParameter="OutputGuid"
|
|
PropertyName="Templates31InstallerUpgradeCode" />
|
|
</GenerateGuidFromName>
|
|
|
|
<GenerateGuidFromName Name="$(Templates30MSIInstallerFile)">
|
|
<Output TaskParameter="OutputGuid"
|
|
PropertyName="Templates30InstallerUpgradeCode" />
|
|
</GenerateGuidFromName>
|
|
|
|
<GenerateGuidFromName Name="$(Templates21MSIInstallerFile)">
|
|
<Output TaskParameter="OutputGuid"
|
|
PropertyName="Templates21InstallerUpgradeCode" />
|
|
</GenerateGuidFromName>
|
|
|
|
<GenerateGuidFromName Name="$(SdkPlaceholderMSIInstallerFile)">
|
|
<Output TaskParameter="OutputGuid"
|
|
PropertyName="SdkPlaceholderInstallerUpgradeCode" />
|
|
</GenerateGuidFromName>
|
|
|
|
<GenerateGuidFromName Name="$(SdkBundleInstallerOutputGuidString)">
|
|
<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"
|
|
Condition=" '$(OS)' == 'Windows_NT' "
|
|
Inputs="$(SdkInternalLayoutPath)**/*;
|
|
$(SdkGenerateMsiPowershellScript)"
|
|
Outputs="$(SdkMSIInstallerFile)">
|
|
|
|
<Exec Command="powershell -NoProfile -NoLogo $(SdkGenerateMsiPowershellScript) ^
|
|
'$(SdkInternalLayoutPath.TrimEnd('\'))' ^
|
|
'$(SdkMSIInstallerFile)' ^
|
|
'$(WixRoot)' ^
|
|
'$(ToolsetBrandName)' ^
|
|
'$(MsiVersion)' ^
|
|
'$(SDKBundleVersion)' ^
|
|
'$(Version)' ^
|
|
'$(SdkInstallerUpgradeCode)' ^
|
|
'$(SdkDependencyKeyName)' ^
|
|
'$(Architecture)' ^
|
|
'$(SdkStableFileIdForApphostTransform)' ^
|
|
-InformationAction Continue" />
|
|
</Target>
|
|
|
|
<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)' ^
|
|
'$(Version)' ^
|
|
'$(SdkPlaceholderInstallerUpgradeCode)' ^
|
|
'$(SdkPlaceholderDependencyKeyName)' ^
|
|
'$(Architecture)' ^
|
|
-InformationAction Continue" />
|
|
</Target>
|
|
|
|
<Target Name="GenerateTemplatesMsis"
|
|
DependsOnTargets="GenerateLayout;AcquireWix;MsiTargetsSetupInputOutputs;SetSdkBrandingInfo;SetupTemplatesMsis"
|
|
Condition="$(ProductMonikerRid.StartsWith('win')) And !$(Architecture.StartsWith('arm'))"
|
|
Inputs="@(TemplatesMsiComponent->'%(LayoutPath)');
|
|
$(TemplatesGenerateMsiPowershellScript)"
|
|
Outputs="@(TemplatesMsiComponent->'%(MSIInstallerFile)')">
|
|
|
|
<Exec Command="powershell -NoProfile -NoLogo $(TemplatesGenerateMsiPowershellScript) ^
|
|
'%(TemplatesMsiComponent.LayoutPath)' ^
|
|
'@(TemplatesMsiComponent->'%(MSIInstallerFile)')' ^
|
|
'$(WixRoot)' ^
|
|
'@(TemplatesMsiComponent->'%(BrandName)')' ^
|
|
'@(TemplatesMsiComponent->'%(MsiVersion)')' ^
|
|
'@(TemplatesMsiComponent->'%(MsiVersion)')' ^
|
|
'$(FullNugetVersion)' ^
|
|
'@(TemplatesMsiComponent->'%(UpgradeCode)')' ^
|
|
'@(TemplatesMsiComponent->'%(DependencyKeyName)')' ^
|
|
'$(Architecture)' ^
|
|
-InformationAction Continue" />
|
|
</Target>
|
|
|
|
<Target Name="SetupTemplatesMsis">
|
|
<PropertyGroup>
|
|
<TemplatesGenerateMsiPowershellScript>$(MSBuildThisFileDirectory)packaging/windows/clisdk/generatetemplatesmsi.ps1</TemplatesGenerateMsiPowershellScript>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<TemplatesMsiComponent Include="NetCore50TemplatesMsi">
|
|
<LayoutPath>$(Templates50LayoutPath.TrimEnd('\'))</LayoutPath>
|
|
<MSIInstallerFile>$(Templates50MSIInstallerFile)</MSIInstallerFile>
|
|
<BrandName>$(BundledTemplates50BrandName)</BrandName>
|
|
<MsiVersion>$(BundledTemplates50MsiVersion)</MsiVersion>
|
|
<UpgradeCode>$(Templates50InstallerUpgradeCode)</UpgradeCode>
|
|
<DependencyKeyName>NetCore_Templates_5.0</DependencyKeyName>
|
|
</TemplatesMsiComponent>
|
|
<TemplatesMsiComponent Include="NetCore31TemplatesMsi">
|
|
<LayoutPath>$(Templates31LayoutPath.TrimEnd('\'))</LayoutPath>
|
|
<MSIInstallerFile>$(Templates31MSIInstallerFile)</MSIInstallerFile>
|
|
<BrandName>$(BundledTemplates31BrandName)</BrandName>
|
|
<MsiVersion>$(BundledTemplates31MsiVersion)</MsiVersion>
|
|
<UpgradeCode>$(Templates31InstallerUpgradeCode)</UpgradeCode>
|
|
<DependencyKeyName>NetCore_Templates_3.1</DependencyKeyName>
|
|
</TemplatesMsiComponent>
|
|
<TemplatesMsiComponent Include="NetCore30TemplatesMsi">
|
|
<LayoutPath>$(Templates30LayoutPath.TrimEnd('\'))</LayoutPath>
|
|
<MSIInstallerFile>$(Templates30MSIInstallerFile)</MSIInstallerFile>
|
|
<BrandName>$(BundledTemplates30BrandName)</BrandName>
|
|
<MsiVersion>$(BundledTemplates30MsiVersion)</MsiVersion>
|
|
<UpgradeCode>$(Templates30InstallerUpgradeCode)</UpgradeCode>
|
|
<DependencyKeyName>NetCore_Templates_3.0</DependencyKeyName>
|
|
</TemplatesMsiComponent>
|
|
<TemplatesMsiComponent Include="NetCore21TemplatesMsi">
|
|
<LayoutPath>$(Templates21LayoutPath.TrimEnd('\'))</LayoutPath>
|
|
<MSIInstallerFile>$(Templates21MSIInstallerFile)</MSIInstallerFile>
|
|
<BrandName>$(BundledTemplates21BrandName)</BrandName>
|
|
<MsiVersion>$(BundledTemplates21MsiVersion)</MsiVersion>
|
|
<UpgradeCode>$(Templates21InstallerUpgradeCode)</UpgradeCode>
|
|
<DependencyKeyName>NetCore_Templates_2.1</DependencyKeyName>
|
|
</TemplatesMsiComponent>
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
<Target Name="GenerateSdkBundle"
|
|
DependsOnTargets="GenerateLayout;AcquireWix;MsiTargetsSetupInputOutputs;GenerateSdkMsi;SignSdkMsi;GenerateTemplatesMsis;SignTemplatesMsis"
|
|
Condition=" '$(OS)' == 'Windows_NT' "
|
|
Inputs="$(SdkMSIInstallerFile);
|
|
$(DownloadedSharedFrameworkInstallerFile);
|
|
$(DownloadedHostFxrInstallerFile);
|
|
$(DownloadedSharedHostInstallerFile);
|
|
$(SdkGenerateBundlePowershellScript)"
|
|
Outputs="$(CombinedFrameworkSdkHostMSIInstallerFile)">
|
|
|
|
<Exec Command="powershell -NoProfile -NoLogo $(SdkGenerateBundlePowershellScript) ^
|
|
'$(SdkMSIInstallerFile)' ^
|
|
'$(DownloadsFolder)$(DownloadedAspNetCoreSharedFxWixLibFileName)' ^
|
|
'$(DownloadsFolder)$(DownloadedSharedFrameworkInstallerFileName)' ^
|
|
'$(DownloadsFolder)$(DownloadedHostFxrInstallerFileName)' ^
|
|
'$(DownloadsFolder)$(DownloadedSharedHostInstallerFileName)' ^
|
|
'$(DownloadsFolder)$(DownloadedWinFormsAndWpfSharedFrameworkInstallerFileName)' ^
|
|
'$(DownloadsFolder)$(DownloadedNetCoreAppTargetingPackInstallerFileName)' ^
|
|
'$(DownloadsFolder)$(DownloadedNetStandardTargetingPackInstallerFileName)' ^
|
|
'$(DownloadsFolder)$(DownloadedNetCoreAppHostPackInstallerFileName)' ^
|
|
'$(DownloadsFolder)$(DownloadedAlternateNetCoreAppHostPackInstallerFileName)' ^
|
|
'$(DownloadsFolder)$(DownloadedArmNetCoreAppHostPackInstallerFileName)' ^
|
|
'$(DownloadsFolder)$(DownloadedArm64NetCoreAppHostPackInstallerFileName)' ^
|
|
'$(DownloadsFolder)$(DownloadedAspNetTargetingPackInstallerFileName)' ^
|
|
'$(DownloadsFolder)$(DownloadedWindowsDesktopTargetingPackInstallerFileName)' ^
|
|
'$(Templates50MSIInstallerFile)' ^
|
|
'$(CombinedFrameworkSdkHostMSIInstallerFile)' ^
|
|
'$(WixRoot)' ^
|
|
'$(SdkBrandName)' ^
|
|
'$(MsiVersion)' ^
|
|
'$(SDKBundleVersion)' ^
|
|
'$(Version)' ^
|
|
'$(MicrosoftWindowsDesktopAppRuntimePackageVersion)' ^
|
|
'$(CombinedFrameworkSDKHostInstallerUpgradeCode)' ^
|
|
'$(SdkDependencyKeyName)' ^
|
|
'$(Architecture)' ^
|
|
'$(MicrosoftNETCoreAppRuntimePackageVersion)' ^
|
|
'$(MicrosoftAspNetCoreAppRuntimePackageVersion)' ^
|
|
'$(CliProductBandVersion)' ^
|
|
-InformationAction Continue " />
|
|
</Target>
|
|
|
|
<Target Name="GenerateToolsetNupkg"
|
|
DependsOnTargets="GenerateLayout;MsiTargetsSetupInputOutputs;GenerateSdkMsi;SignSdkMsi"
|
|
Condition=" '$(OS)' == 'Windows_NT' "
|
|
Inputs="$(SdkMSIInstallerFile);
|
|
$(ToolsetInstallerNuspecFile);
|
|
$(GenerateNupkgPowershellScript)"
|
|
Outputs="$(ToolsetInstallerNupkgFile)">
|
|
|
|
<Exec Command="powershell -NoProfile -NoLogo $(GenerateNupkgPowershellScript) ^
|
|
'$(ArtifactsDir)' ^
|
|
'$(SdkMSIInstallerFile)' ^
|
|
'$(FullNugetVersion)' ^
|
|
'$(ToolsetInstallerNuspecFile)' ^
|
|
'$(ToolsetInstallerNupkgFile)' ^
|
|
'$(Architecture)' ^
|
|
'$(MajorMinorVersion)'" />
|
|
</Target>
|
|
|
|
<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>
|
|
|
|
<Target Name="GenerateTemplatesNupkgs"
|
|
DependsOnTargets="GenerateLayout;MsiTargetsSetupInputOutputs;GenerateTemplatesMsis;SignTemplatesMsis;SetupTemplatesNupkgs"
|
|
Condition="$(ProductMonikerRid.StartsWith('win')) And !$(Architecture.StartsWith('arm'))"
|
|
Inputs="@(TemplatesNupkgComponent->'%(MSIInstallerFile)');
|
|
$(TemplatesInstallerNuspecFile);
|
|
$(GenerateNupkgPowershellScript)"
|
|
Outputs="@(TemplatesNupkgComponent->'%(NupkgFile)')">
|
|
|
|
<Exec Command="powershell -NoProfile -NoLogo $(GenerateNupkgPowershellScript) ^
|
|
'$(ArtifactsDir)' ^
|
|
'%(TemplatesNupkgComponent.MSIInstallerFile)' ^
|
|
'$(FullNugetVersion)' ^
|
|
'$(TemplatesInstallerNuspecFile)' ^
|
|
'@(TemplatesNupkgComponent->'%(NupkgFile)')' ^
|
|
'$(Architecture)' ^
|
|
'@(TemplatesNupkgComponent->'%(MajorMinorVersion)')'" />
|
|
</Target>
|
|
|
|
<Target Name="SetupTemplatesNupkgs">
|
|
<PropertyGroup>
|
|
<TemplatesInstallerNuspecFile>$(MSBuildThisFileDirectory)packaging/windows/clisdk/VS.Redist.Common.NetCore.Templates.nuspec</TemplatesInstallerNuspecFile>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<TemplatesNupkgComponent Include="NetCore50TemplatesNupkg">
|
|
<MSIInstallerFile>$(Templates50MSIInstallerFile)</MSIInstallerFile>
|
|
<NupkgFile>$(ArtifactsNonShippingPackagesDir)VS.Redist.Common.NetCore.Templates.$(BundledTemplates50MajorMinorVersion).$(FullNugetVersion).nupkg</NupkgFile>
|
|
<MajorMinorVersion>$(BundledTemplates50MajorMinorVersion)</MajorMinorVersion>
|
|
</TemplatesNupkgComponent>
|
|
<TemplatesNupkgComponent Include="NetCore31TemplatesNupkg">
|
|
<MSIInstallerFile>$(Templates31MSIInstallerFile)</MSIInstallerFile>
|
|
<NupkgFile>$(ArtifactsNonShippingPackagesDir)VS.Redist.Common.NetCore.Templates.$(BundledTemplates31MajorMinorVersion).$(FullNugetVersion).nupkg</NupkgFile>
|
|
<MajorMinorVersion>$(BundledTemplates31MajorMinorVersion)</MajorMinorVersion>
|
|
</TemplatesNupkgComponent>
|
|
<TemplatesNupkgComponent Include="NetCore30TemplatesNupkg">
|
|
<MSIInstallerFile>$(Templates30MSIInstallerFile)</MSIInstallerFile>
|
|
<NupkgFile>$(ArtifactsNonShippingPackagesDir)VS.Redist.Common.NetCore.Templates.$(BundledTemplates30MajorMinorVersion).$(FullNugetVersion).nupkg</NupkgFile>
|
|
<MajorMinorVersion>$(BundledTemplates30MajorMinorVersion)</MajorMinorVersion>
|
|
</TemplatesNupkgComponent>
|
|
<TemplatesNupkgComponent Include="NetCore21TemplatesNupkg">
|
|
<MSIInstallerFile>$(Templates21MSIInstallerFile)</MSIInstallerFile>
|
|
<NupkgFile>$(ArtifactsNonShippingPackagesDir)VS.Redist.Common.NetCore.Templates.$(BundledTemplates21MajorMinorVersion).$(FullNugetVersion).nupkg</NupkgFile>
|
|
<MajorMinorVersion>$(BundledTemplates21MajorMinorVersion)</MajorMinorVersion>
|
|
</TemplatesNupkgComponent>
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
<Target Name="GenerateVSToolsNupkg"
|
|
DependsOnTargets="GenerateLayout;MsiTargetsSetupInputOutputs"
|
|
Condition=" '$(OS)' == 'Windows_NT' and '$(Architecture)' == 'x86' "
|
|
Inputs="$(RedistLayoutPath)/**/*;
|
|
$(VSToolsNuspecFile);
|
|
$(GenerateNupkgPowershellScript)"
|
|
Outputs="$(VSToolsNupkgFile)">
|
|
|
|
<Exec Command="powershell -NoProfile -NoLogo $(GenerateNupkgPowershellScript) ^
|
|
'$(ArtifactsDir)' ^
|
|
'$(RedistLayoutPath.TrimEnd('\'))' ^
|
|
'$(FullNugetVersion)' ^
|
|
'$(VSToolsNuspecFile)' ^
|
|
'$(VSToolsNupkgFile)' ^
|
|
'$(Architecture)'" />
|
|
</Target>
|
|
|
|
<Target Name="GenerateVSToolsResolverNupkg"
|
|
DependsOnTargets="GenerateLayout;MsiTargetsSetupInputOutputs"
|
|
Condition=" '$(OS)' == 'Windows_NT' and '$(Architecture)' == 'x86' "
|
|
Inputs="$(SdkResolverLayoutPath)/**/*;
|
|
$(VSToolsResolverNuspecFile);
|
|
$(GenerateNupkgPowershellScript)"
|
|
Outputs="$(VSToolsResolverNupkgFile)">
|
|
|
|
<Exec Command="powershell -NoProfile -NoLogo $(GenerateNupkgPowershellScript) ^
|
|
'$(ArtifactsDir)' ^
|
|
'$(SdkResolverLayoutPath.TrimEnd('\'))' ^
|
|
'$(FullNugetVersion)' ^
|
|
'$(VSToolsResolverNuspecFile)' ^
|
|
'$(VSToolsResolverNupkgFile)'" />
|
|
</Target>
|
|
|
|
<Target Name="GenerateSdkMSBuildExtensionsNupkg"
|
|
DependsOnTargets="GenerateLayout;GenerateMSBuildExtensions;MsiTargetsSetupInputOutputs"
|
|
Condition=" '$(OS)' == 'Windows_NT' And '$(Architecture)' == 'x64' "
|
|
Inputs="$(MSBuildExtensionsLayoutDirectory)/**/*;
|
|
$(SdkMSBuildExtensionsNuspecFile);
|
|
$(GenerateNupkgPowershellScript)"
|
|
Outputs="$(SdkMSBuildExtensionsNupkgFile);$(SdkMSBuildExtensionsSwrFile)">
|
|
|
|
<Exec Command="powershell -NoProfile -NoLogo $(GenerateNupkgPowershellScript) ^
|
|
'$(ArtifactsDir)' ^
|
|
'$(MSBuildExtensionsLayoutDirectory.TrimEnd('\'))' ^
|
|
'$(FullNugetVersion)' ^
|
|
'$(SdkMSBuildExtensionsNuspecFile)' ^
|
|
'$(SdkMSBuildExtensionsNupkgFile)'" />
|
|
|
|
<GenerateMSBuildExtensionsSWR MSBuildExtensionsLayoutDirectory="$(MSBuildExtensionsLayoutDirectory)"
|
|
OutputFile="$(SdkMSBuildExtensionsSwrFile)"/>
|
|
|
|
</Target>
|
|
|
|
<Target Name="GenerateMsis"
|
|
DependsOnTargets="GenerateLayout;
|
|
MsiTargetsSetupInputOutputs;
|
|
AcquireWix;
|
|
GenerateSdkMsi;
|
|
SignSdkMsi;
|
|
GenerateTemplatesMsis;
|
|
SignTemplatesMsis;
|
|
GenerateSdkBundle;
|
|
SignSdkBundle;
|
|
GenerateSdkPlaceholderMsi;
|
|
SignSdkPlaceholderMsi;
|
|
GenerateToolsetNupkg;
|
|
GenerateTemplatesNupkgs;
|
|
GenerateSdkPlaceholderNupkg;
|
|
GenerateVSToolsNupkg;
|
|
GenerateVSToolsResolverNupkg;
|
|
GenerateSdkMSBuildExtensionsNupkg"
|
|
Condition=" '$(OS)' == 'Windows_NT' and !$(Architecture.StartsWith('arm')) " />
|
|
|
|
|
|
</Project>
|