From 67c7c446f98ea18f2006b69e1e01aa654bdd8fe6 Mon Sep 17 00:00:00 2001 From: jbeisner Date: Wed, 24 Jul 2019 16:08:11 +0000 Subject: [PATCH] Updates per code review --- src/redist/targets/Branding.targets | 3 +++ src/redist/targets/GenerateMSIs.targets | 20 ++++++++++--------- .../VS.Redist.Common.NetCore.Templates.nuspec | 6 +++--- .../VS.Redist.Common.NetCore.Toolset.nuspec | 6 +++--- .../clisdk/VS.Tools.Net.Core.SDK.nuspec | 6 +++--- .../windows/clisdk/generatenupkg.ps1 | 5 +++-- 6 files changed, 26 insertions(+), 20 deletions(-) diff --git a/src/redist/targets/Branding.targets b/src/redist/targets/Branding.targets index 9f81239cd..e70d058c2 100644 --- a/src/redist/targets/Branding.targets +++ b/src/redist/targets/Branding.targets @@ -12,6 +12,9 @@ Microsoft .NET Core Host FX Resolver $(MicrosoftNETCoreAppPackageVersion) Microsoft.NETCore.App $(SharedFrameworkName) + Microsoft .NET Core 3.0 Templates + Microsoft .NET Core 2.2 Templates + Microsoft .NET Core 2.1 Templates diff --git a/src/redist/targets/GenerateMSIs.targets b/src/redist/targets/GenerateMSIs.targets index d94092fb9..9fdb03b75 100644 --- a/src/redist/targets/GenerateMSIs.targets +++ b/src/redist/targets/GenerateMSIs.targets @@ -143,8 +143,8 @@ Outputs="@(TemplatesMsiComponent->'%(MSIInstallerFile)')"> $(Templates30LayoutPath.TrimEnd('\')) $(Templates30MSIInstallerFile) - Microsoft .NET Core 3.0 Templates + $(BundledTemplates30BrandName) $(BundledTemplates30MsiVersion) $(BundledTemplates30Version) $(Templates30InstallerUpgradeCode) @@ -172,7 +172,7 @@ $(Templates22LayoutPath.TrimEnd('\')) $(Templates22MSIInstallerFile) - Microsoft .NET Core 2.2 Templates + $(BundledTemplates22BrandName) $(BundledTemplates22MsiVersion) $(BundledTemplates22Version) $(Templates22InstallerUpgradeCode) @@ -180,7 +180,7 @@ $(Templates21LayoutPath.TrimEnd('\')) $(Templates21MSIInstallerFile) - Microsoft .NET Core 2.1 Templates + $(BundledTemplates21BrandName) $(BundledTemplates21MsiVersion) $(BundledTemplates21Version) $(Templates21InstallerUpgradeCode) @@ -241,6 +241,7 @@ '$(ToolsetInstallerNuspecFile)' ^ '$(ToolsetInstallerNupkgFile)' ^ '$(Architecture)' ^ + '$(MajorMinorVersion)' ^ '$(SdkMSICabFile)'" /> @@ -258,7 +259,8 @@ '@(TemplatesNupkgComponent->'%(Version)')' ^ '$(TemplatesInstallerNuspecFile)' ^ '@(TemplatesNupkgComponent->'%(NupkgFile)')' ^ - '@(TemplatesNupkgComponent->'%(IDSuffix)')'" /> + '$(Architecture)' ^ + '@(TemplatesNupkgComponent->'%(MajorMinorVersion)')'" /> @@ -271,19 +273,19 @@ $(Templates30MSIInstallerFile) $(ArtifactsNonShippingPackagesDir)VS.Redist.Common.NetCore.Templates.$(BundledTemplates30MajorMinorVersion).$(BundledTemplates30Version).nupkg $(BundledTemplates30Version) - $(Architecture).$(BundledTemplates30MajorMinorVersion) + $(BundledTemplates30MajorMinorVersion) $(Templates22MSIInstallerFile) $(ArtifactsNonShippingPackagesDir)VS.Redist.Common.NetCore.Templates.$(BundledTemplates22MajorMinorVersion).$(BundledTemplates22Version).nupkg $(BundledTemplates22Version) - $(Architecture).$(BundledTemplates22MajorMinorVersion) + $(BundledTemplates22MajorMinorVersion) $(Templates21MSIInstallerFile) $(ArtifactsNonShippingPackagesDir)VS.Redist.Common.NetCore.Templates.$(BundledTemplates21MajorMinorVersion).$(BundledTemplates21Version).nupkg $(BundledTemplates21Version) - $(Architecture).$(BundledTemplates21MajorMinorVersion) + $(BundledTemplates21MajorMinorVersion) diff --git a/src/redist/targets/packaging/windows/clisdk/VS.Redist.Common.NetCore.Templates.nuspec b/src/redist/targets/packaging/windows/clisdk/VS.Redist.Common.NetCore.Templates.nuspec index acf7fe532..b6bcf5915 100644 --- a/src/redist/targets/packaging/windows/clisdk/VS.Redist.Common.NetCore.Templates.nuspec +++ b/src/redist/targets/packaging/windows/clisdk/VS.Redist.Common.NetCore.Templates.nuspec @@ -1,15 +1,15 @@  - VS.Redist.Common.NetCore.Templates.$DATA$ + VS.Redist.Common.NetCore.Templates.$ARCH$.$MAJOR_MINOR$ 1.0.0 - VS.Redist.Common.NetCore.Templates.$DATA$ + VS.Redist.Common.NetCore.Templates.$ARCH$.$MAJOR_MINOR$ Microsoft Microsoft https://www.microsoft.com/net/dotnet_library_license.htm https://github.com/dotnet/core-sdk true - .NET Core $DATA$ Templates Windows Installer MSI as a .nupkg for internal Visual Studio build consumption + .NET Core $MAJOR_MINOR$ Templates Windows Installer MSI as a .nupkg for internal Visual Studio build consumption © Microsoft Corporation. All rights reserved. diff --git a/src/redist/targets/packaging/windows/clisdk/VS.Redist.Common.NetCore.Toolset.nuspec b/src/redist/targets/packaging/windows/clisdk/VS.Redist.Common.NetCore.Toolset.nuspec index 8915aac6e..1c71d7a34 100644 --- a/src/redist/targets/packaging/windows/clisdk/VS.Redist.Common.NetCore.Toolset.nuspec +++ b/src/redist/targets/packaging/windows/clisdk/VS.Redist.Common.NetCore.Toolset.nuspec @@ -1,15 +1,15 @@  - VS.Redist.Common.NetCore.Toolset.$DATA$ + VS.Redist.Common.NetCore.Toolset.$ARCH$ 1.0.0 - VS.Redist.Common.NetCore.Toolset.$DATA$ + VS.Redist.Common.NetCore.Toolset.$ARCH$ Microsoft Microsoft https://www.microsoft.com/net/dotnet_library_license.htm https://github.com/dotnet/core-sdk true - .NET Core SDK Toolset ($DATA$) Windows Installer MSI as a .nupkg for internal Visual Studio build consumption + .NET Core $MAJOR_MINOR$ SDK Toolset ($ARCH$) Windows Installer MSI as a .nupkg for internal Visual Studio build consumption © Microsoft Corporation. All rights reserved. diff --git a/src/redist/targets/packaging/windows/clisdk/VS.Tools.Net.Core.SDK.nuspec b/src/redist/targets/packaging/windows/clisdk/VS.Tools.Net.Core.SDK.nuspec index 5b93186c9..b986d3440 100644 --- a/src/redist/targets/packaging/windows/clisdk/VS.Tools.Net.Core.SDK.nuspec +++ b/src/redist/targets/packaging/windows/clisdk/VS.Tools.Net.Core.SDK.nuspec @@ -1,15 +1,15 @@  - VS.Tools.Net.Core.SDK.$DATA$ + VS.Tools.Net.Core.SDK.$ARCH$ 1.0.0 - VS.Tools.Net.Core.SDK.$DATA$ + VS.Tools.Net.Core.SDK.$ARCH$ Microsoft Microsoft https://www.microsoft.com/net/dotnet_library_license.htm https://github.com/dotnet/core-sdk true - .NET Core SDK ($DATA$) as a .nupkg for internal Visual Studio build consumption + .NET Core SDK ($ARCH$) as a .nupkg for internal Visual Studio build consumption © Microsoft Corporation. All rights reserved. diff --git a/src/redist/targets/packaging/windows/clisdk/generatenupkg.ps1 b/src/redist/targets/packaging/windows/clisdk/generatenupkg.ps1 index d54154225..9fda65872 100644 --- a/src/redist/targets/packaging/windows/clisdk/generatenupkg.ps1 +++ b/src/redist/targets/packaging/windows/clisdk/generatenupkg.ps1 @@ -7,7 +7,8 @@ param( [Parameter(Mandatory=$true)][string]$NugetVersion, [Parameter(Mandatory=$true)][string]$NuspecFile, [Parameter(Mandatory=$true)][string]$NupkgFile, - [Parameter(Mandatory=$false)][string]$AdditionalData, + [Parameter(Mandatory=$false)][string]$Architecture, + [Parameter(Mandatory=$false)][string]$MmVersion, [Parameter(Mandatory=$false)][string]$CabPath ) @@ -33,5 +34,5 @@ if (Test-Path $NupkgFile) { Remove-Item -Force $NupkgFile } -& $NuGetExe pack $NuspecFile -Version $NugetVersion -OutputDirectory $OutputDirectory -NoDefaultExcludes -NoPackageAnalysis -Properties PAYLOAD_FILES=$ContentPath`;DOTNET_CAB_FILE=$CabPath`;DATA=$AdditionalData +& $NuGetExe pack $NuspecFile -Version $NugetVersion -OutputDirectory $OutputDirectory -NoDefaultExcludes -NoPackageAnalysis -Properties PAYLOAD_FILES=$ContentPath`;DOTNET_CAB_FILE=$CabPath`;ARCH=$Architecture`;MAJOR_MINOR=$MmVersion Exit $LastExitCode