Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 28dff6b

Browse files
author
Livar
authored
Merge pull request #8122 from livarcocc/produce_v1_packages
Making the 1.1.x CLI produce a .v1 nupkg for VS insertion.
2 parents 5c05d9b + b233216 commit 28dff6b

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

build/package/Microsoft.DotNet.Cli.Installer.MSI.targets

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
<CombinedFrameworkSdkHostInstallerFile>$(InstallerOutputDirectory)/$(ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk)$(BundleExtension)</CombinedFrameworkSdkHostInstallerFile>
2525
<SdkInstallerNuspecFile>$(RepoRoot)/packaging/windows/clisdk/VS.Redist.Common.Net.Core.SDK.$(Architecture).nuspec</SdkInstallerNuspecFile>
2626
<SdkInstallerNupkgFile>$(InstallerOutputDirectory)/VS.Redist.Common.Net.Core.SDK.$(Architecture).$(FullNugetVersion).nupkg</SdkInstallerNupkgFile>
27+
<SdkInstallerNuspecV1File>$(RepoRoot)/packaging/windows/clisdk/VS.Redist.Common.Net.Core.SDK.$(Architecture).v1.nuspec</SdkInstallerNuspecV1File>
28+
<SdkInstallerNupkgV1File>$(InstallerOutputDirectory)/VS.Redist.Common.Net.Core.SDK.$(Architecture).v1.$(FullNugetVersion).nupkg</SdkInstallerNupkgV1File>
2729
</PropertyGroup>
2830

2931
<!-- Generate SDK MSI Inputs -->
@@ -129,14 +131,22 @@
129131
Condition=" '$(OS)' == 'Windows_NT'"
130132
Inputs="$(CombinedFrameworkSdkHostInstallerFile);
131133
$(SdkInstallerNuspecFile);
134+
$(SdkInstallerNuspecV1File);
132135
$(SdkGenerateNupkgPowershellScript)"
133-
Outputs="$(SdkInstallerNupkgFile)">
136+
Outputs="$(SdkInstallerNupkgFile);
137+
$(SdkInstallerNupkgV1File)">
134138

135139
<Exec Command="powershell -NoProfile -NoLogo $(SdkGenerateNupkgPowershellScript)
136140
'$(CombinedFrameworkSdkHostInstallerFile)'
137141
'$(FullNugetVersion)'
138142
'$(SdkInstallerNuspecFile)'
139143
'$(SdkInstallerNupkgFile)'" />
144+
145+
<Exec Command="powershell -NoProfile -NoLogo $(SdkGenerateNupkgPowershellScript)
146+
'$(CombinedFrameworkSdkHostInstallerFile)'
147+
'$(FullNugetVersion)'
148+
'$(SdkInstallerNuspecV1File)'
149+
'$(SdkInstallerNupkgV1File)'" />
140150
</Target>
141151

142152
<Target Name="TestSdkMsi"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
3+
<metadata>
4+
<id>VS.Redist.Common.Net.Core.SDK.x64.v1</id>
5+
<version>1.0.0</version>
6+
<title>VS.Redist.Common.Net.Core.SDK.x64.v1</title>
7+
<authors>Microsoft</authors>
8+
<owners>Microsoft</owners>
9+
<licenseUrl>https://www.microsoft.com/net/dotnet_library_license.htm</licenseUrl>
10+
<projectUrl>https://github.com/dotnet/cli</projectUrl>
11+
<requireLicenseAcceptance>true</requireLicenseAcceptance>
12+
<description>Windows Installers (x64) for .Net Core SDK</description>
13+
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
14+
</metadata>
15+
<files>
16+
<file src="[DOTNET_BUNDLE]" target="[DOTNET_BUNDLE]" />
17+
</files>
18+
</package>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
3+
<metadata>
4+
<id>VS.Redist.Common.Net.Core.SDK.x86.v1</id>
5+
<version>1.0.0</version>
6+
<title>VS.Redist.Common.Net.Core.SDK.x86.v1</title>
7+
<authors>Microsoft</authors>
8+
<owners>Microsoft</owners>
9+
<licenseUrl>https://www.microsoft.com/net/dotnet_library_license.htm</licenseUrl>
10+
<projectUrl>https://github.com/dotnet/cli</projectUrl>
11+
<requireLicenseAcceptance>true</requireLicenseAcceptance>
12+
<description>Windows Installer (x86) for .Net Core SDK</description>
13+
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
14+
</metadata>
15+
<files>
16+
<file src="[DOTNET_BUNDLE]" target="[DOTNET_BUNDLE]" />
17+
</files>
18+
</package>

0 commit comments

Comments
 (0)