From f55ddb8a1565c255b0877fc5f0f7f29ab6e030b5 Mon Sep 17 00:00:00 2001 From: jbeisner Date: Mon, 22 Jul 2019 17:06:16 +0000 Subject: [PATCH] Adding 2.1 and 2.2 Templates MSIs, part 3 --- src/redist/redist.csproj | 2 - src/redist/targets/Bundled21Templates.targets | 51 ---------- src/redist/targets/Bundled22Templates.targets | 50 ---------- src/redist/targets/BundledTemplates.targets | 94 ++++++++++++++++--- src/redist/targets/GenerateLayout.targets | 3 - src/redist/targets/GenerateMSIs.targets | 62 ++++++------ 6 files changed, 110 insertions(+), 152 deletions(-) delete mode 100644 src/redist/targets/Bundled21Templates.targets delete mode 100644 src/redist/targets/Bundled22Templates.targets diff --git a/src/redist/redist.csproj b/src/redist/redist.csproj index a65627053..e9f84e078 100644 --- a/src/redist/redist.csproj +++ b/src/redist/redist.csproj @@ -26,8 +26,6 @@ - - diff --git a/src/redist/targets/Bundled21Templates.targets b/src/redist/targets/Bundled21Templates.targets deleted file mode 100644 index 30a9172ab..000000000 --- a/src/redist/targets/Bundled21Templates.targets +++ /dev/null @@ -1,51 +0,0 @@ - - - - $(AspNetCorePackageVersionFor21Templates) - $(AspNetCorePackageVersionFor21Templates).$(GitCommitCount) - $(AspNetCorePackageVersionFor21Templates)-$(VersionSuffix) - $([MSBuild]::Add($(BundledTemplates21InstallPath.IndexOf('.')), 1)) - $(BundledTemplates21InstallPath.IndexOf('.', $(Templates21VersionPatchSeparatorIndex))) - $(BundledTemplates21InstallPath.Substring(0, $(Templates21VersionPatchSeparatorIndex))) - - - - - - - - - - - - - - - - - - - - - %(Identity)/%(PackageVersion)/%(Identity).%(PackageVersion).nupkg - $(NuGetPackageRoot)$([MSBuild]::ValueOrDefault('%(NupkgPathRelativeToPackageRoot)', '').ToLower()) - [%(PackageVersion)] - - - - - - - - - - - - - - - diff --git a/src/redist/targets/Bundled22Templates.targets b/src/redist/targets/Bundled22Templates.targets deleted file mode 100644 index 83359e6a3..000000000 --- a/src/redist/targets/Bundled22Templates.targets +++ /dev/null @@ -1,50 +0,0 @@ - - - - $(AspNetCorePackageVersionFor22Templates) - $(AspNetCorePackageVersionFor22Templates).$(GitCommitCount) - $(AspNetCorePackageVersionFor22Templates)-$(VersionSuffix) - $([MSBuild]::Add($(BundledTemplates22InstallPath.IndexOf('.')), 1)) - $(BundledTemplates22InstallPath.IndexOf('.', $(Templates22VersionPatchSeparatorIndex))) - $(BundledTemplates22InstallPath.Substring(0, $(Templates22VersionPatchSeparatorIndex))) - - - - - - - - - - - - - - - - - - - - - %(Identity)/%(PackageVersion)/%(Identity).%(PackageVersion).nupkg - $(NuGetPackageRoot)$([MSBuild]::ValueOrDefault('%(NupkgPathRelativeToPackageRoot)', '').ToLower()) - [%(PackageVersion)] - - - - - - - - - - - - - - diff --git a/src/redist/targets/BundledTemplates.targets b/src/redist/targets/BundledTemplates.targets index a40942dfc..522073b01 100644 --- a/src/redist/targets/BundledTemplates.targets +++ b/src/redist/targets/BundledTemplates.targets @@ -11,34 +11,84 @@ $([MSBuild]::Add($(AspNetCore30VersionMajorMinorPatchVersion.IndexOf('.')), 1)) $(AspNetCore30VersionMajorMinorPatchVersion.IndexOf('.', $(Templates30VersionPatchSeparatorIndex))) $(AspNetCore30VersionMajorMinorPatchVersion.Substring(0, $(Templates30VersionPatchSeparatorIndex))) + + $(AspNetCorePackageVersionFor22Templates) + $(AspNetCorePackageVersionFor22Templates).$(GitCommitCount) + $(AspNetCorePackageVersionFor22Templates)-$(VersionSuffix) + $([MSBuild]::Add($(BundledTemplates22InstallPath.IndexOf('.')), 1)) + $(BundledTemplates22InstallPath.IndexOf('.', $(Templates22VersionPatchSeparatorIndex))) + $(BundledTemplates22InstallPath.Substring(0, $(Templates22VersionPatchSeparatorIndex))) + + $(AspNetCorePackageVersionFor21Templates) + $(AspNetCorePackageVersionFor21Templates).$(GitCommitCount) + $(AspNetCorePackageVersionFor21Templates)-$(VersionSuffix) + $([MSBuild]::Add($(BundledTemplates21InstallPath.IndexOf('.')), 1)) + $(BundledTemplates21InstallPath.IndexOf('.', $(Templates21VersionPatchSeparatorIndex))) + $(BundledTemplates21InstallPath.Substring(0, $(Templates21VersionPatchSeparatorIndex))) - - - - - - - - - + + + + + + + + + - - - + + + + + + + - + + + + + + + + + + - %(Identity)/%(Version)/%(Identity).%(Version).nupkg + %(Identity)/%(PackageVersion)/%(Identity).%(PackageVersion).nupkg $(NuGetPackageRoot)$([MSBuild]::ValueOrDefault('%(NupkgPathRelativeToPackageRoot)', '').ToLower()) + [%(PackageVersion)] - + + + %(Identity)/%(PackageVersion)/%(Identity).%(PackageVersion).nupkg + $(NuGetPackageRoot)$([MSBuild]::ValueOrDefault('%(NupkgPathRelativeToPackageRoot)', '').ToLower()) + [%(PackageVersion)] + + + + + %(Identity)/%(PackageVersion)/%(Identity).%(PackageVersion).nupkg + $(NuGetPackageRoot)$([MSBuild]::ValueOrDefault('%(NupkgPathRelativeToPackageRoot)', '').ToLower()) + [%(PackageVersion)] + + + + + + + + + + @@ -54,4 +104,18 @@ + + + + + + + + diff --git a/src/redist/targets/GenerateLayout.targets b/src/redist/targets/GenerateLayout.targets index 9129e7f5f..f7937d6fb 100644 --- a/src/redist/targets/GenerateLayout.targets +++ b/src/redist/targets/GenerateLayout.targets @@ -418,9 +418,6 @@ GenerateBundledVersions; LayoutRuntimeGraph; LayoutTemplates; - LayoutTemplatesFor30MSI; - LayoutTemplatesFor22MSI; - LayoutTemplatesFor21MSI; LayoutBundledTools; RetargetTools; CrossgenLayout; diff --git a/src/redist/targets/GenerateMSIs.targets b/src/redist/targets/GenerateMSIs.targets index f84d062ee..87962f739 100644 --- a/src/redist/targets/GenerateMSIs.targets +++ b/src/redist/targets/GenerateMSIs.targets @@ -34,12 +34,12 @@ - $(ArtifactsShippingPackagesDir)$(ArtifactNameWithVersionSdk)$(InstallerExtension) - $(ArtifactsShippingPackagesDir)d$(Architecture)-1.cab - $(ArtifactsShippingPackagesDir)$(ArtifactNameTemplates)-$(BundledTemplates30Version)-$(ProductMonikerRid)$(InstallerExtension) - $(ArtifactsShippingPackagesDir)$(ArtifactNameTemplates)-$(BundledTemplates22Version)-$(ProductMonikerRid)$(InstallerExtension) - $(ArtifactsShippingPackagesDir)$(ArtifactNameTemplates)-$(BundledTemplates21Version)-$(ProductMonikerRid)$(InstallerExtension) - $(ArtifactsShippingPackagesDir)$(ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk)$(BundleExtension) + $(ArtifactsShippingPackagesDir)$(ArtifactNameWithVersionSdk)$(InstallerExtension) + $(ArtifactsShippingPackagesDir)d$(Architecture)-1.cab + $(ArtifactsShippingPackagesDir)$(ArtifactNameTemplates)-$(BundledTemplates30Version)-$(ProductMonikerRid)$(InstallerExtension) + $(ArtifactsShippingPackagesDir)$(ArtifactNameTemplates)-$(BundledTemplates22Version)-$(ProductMonikerRid)$(InstallerExtension) + $(ArtifactsShippingPackagesDir)$(ArtifactNameTemplates)-$(BundledTemplates21Version)-$(ProductMonikerRid)$(InstallerExtension) + $(ArtifactsShippingPackagesDir)$(ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk)$(BundleExtension) $(ProductBandCombinedHostHostFxrFrameworkSdkName) - + - + - + - + - + @@ -119,11 +119,11 @@ Condition=" '$(OS)' == 'Windows_NT' " Inputs="$(SdkInternalLayoutPath)**/*; $(SdkGenerateMsiPowershellScript)" - Outputs="$(SdkMsiInstallerFile)"> + Outputs="$(SdkMSIInstallerFile)"> + Outputs="@(TemplatesMsiComponent->'%(MSIInstallerFile)')"> $(Templates30LayoutPath.TrimEnd('\')) - $(Templates30MsiInstallerFile) + $(Templates30MSIInstallerFile) Microsoft .NET Core 3.0 Templates $(BundledTemplates30MsiVersion) $(BundledTemplates30Version) @@ -171,7 +171,7 @@ $(Templates22LayoutPath.TrimEnd('\')) - $(Templates22MsiInstallerFile) + $(Templates22MSIInstallerFile) Microsoft .NET Core 2.2 Templates $(BundledTemplates22MsiVersion) $(BundledTemplates22Version) @@ -179,7 +179,7 @@ $(Templates21LayoutPath.TrimEnd('\')) - $(Templates21MsiInstallerFile) + $(Templates21MSIInstallerFile) Microsoft .NET Core 2.1 Templates $(BundledTemplates21MsiVersion) $(BundledTemplates21Version) @@ -191,15 +191,15 @@ + Outputs="$(CombinedFrameworkSdkHostMSIInstallerFile)"> + '$(SdkMSICabFile)'" /> '%(MSIInstallerFile)'); $(TemplatesInstallerNuspecFile); $(GenerateNupkgPowershellScript)" Outputs="@(TemplatesNupkgComponent->'%(NupkgFile)')"> - $(Templates30MsiInstallerFile) + $(Templates30MSIInstallerFile) $(ArtifactsNonShippingPackagesDir)VS.Redist.Common.NetCore.Templates.$(Templates30MajorMinorVersion).$(BundledTemplates30Version).nupkg $(BundledTemplates30Version) $(Architecture).$(Templates30MajorMinorVersion) - $(Templates22MsiInstallerFile) + $(Templates22MSIInstallerFile) $(ArtifactsNonShippingPackagesDir)VS.Redist.Common.NetCore.Templates.$(Templates22MajorMinorVersion).$(BundledTemplates22Version).nupkg $(BundledTemplates22Version) $(Architecture).$(Templates22MajorMinorVersion) - $(Templates21MsiInstallerFile) + $(Templates21MSIInstallerFile) $(ArtifactsNonShippingPackagesDir)VS.Redist.Common.NetCore.Templates.$(Templates21MajorMinorVersion).$(BundledTemplates21Version).nupkg $(BundledTemplates21Version) $(Architecture).$(Templates21MajorMinorVersion)