Skip to content

Commit c3f89a9

Browse files
wtgodbeilmax
andauthored
Generate non-stable version for installer (#26064)
* Generate non-stable version for installer * Fix versions * Add upgrade codes for 3.1.0-3.1.8 * Fixup * Fixup * Update src/Installers/Windows/SharedFrameworkBundle/Bundle.wxs Co-authored-by: Massimiliano Donini <massimiliano.donini@gmail.com> * Add codes for 3.1.9 Co-authored-by: Massimiliano Donini <massimiliano.donini@gmail.com>
1 parent 7c3a072 commit c3f89a9

File tree

3 files changed

+79
-5
lines changed

3 files changed

+79
-5
lines changed

src/Installers/Windows/SharedFrameworkBundle/Bundle.wxs

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,56 @@
2424
<?endif?>
2525
<?endif?>
2626

27+
<!-- Ensure upgrades from 3.1.0 thru 3.1.9 for x64. -->
28+
<?if $(var.MajorVersion)=3 and $(var.MinorVersion)=1?>
29+
<?if $(var.Platform)=x64?>
30+
<!--'Microsoft ASP.NET Core 3.1.9 - Shared Framework'-->
31+
<RelatedBundle Action="Upgrade" Id="{9BD9F5C9-7DE4-3A3C-AB10-29B30D48CB39}"/>
32+
<!--'Microsoft ASP.NET Core 3.1.8 - Shared Framework'-->
33+
<RelatedBundle Action="Upgrade" Id="{BA264433-7668-3F63-BA27-0B842B591B41}"/>
34+
<!--'Microsoft ASP.NET Core 3.1.7 - Shared Framework'-->
35+
<RelatedBundle Action="Upgrade" Id="{E843D8AB-9AE4-3BBA-B417-E920A145D4D2}"/>
36+
<!--'Microsoft ASP.NET Core 3.1.6 - Shared Framework'-->
37+
<RelatedBundle Action="Upgrade" Id="{598E3E3B-DFA5-3F58-B2CF-EA59B0CD04E6}"/>
38+
<!--'Microsoft ASP.NET Core 3.1.5 - Shared Framework'-->
39+
<RelatedBundle Action="Upgrade" Id="{C2718AD8-4EC1-300D-A871-E98A1AC69180}"/>
40+
<!--'Microsoft ASP.NET Core 3.1.4 - Shared Framework'-->
41+
<RelatedBundle Action="Upgrade" Id="{F6D32B6E-2736-3FCC-B0F8-CB4C5AF95B2E}"/>
42+
<!--'Microsoft ASP.NET Core 3.1.3 - Shared Framework'-->
43+
<RelatedBundle Action="Upgrade" Id="{33468842-C5B0-3189-96D7-8CD8D28585B9}"/>
44+
<!--'Microsoft ASP.NET Core 3.1.2 - Shared Framework'-->
45+
<RelatedBundle Action="Upgrade" Id="{54EE87B3-B909-37F1-85AD-EE2296ABD2F1}"/>
46+
<!--'Microsoft ASP.NET Core 3.1.1 - Shared Framework'-->
47+
<RelatedBundle Action="Upgrade" Id="{90F6AF22-13B2-3D34-9CF0-C7F407DF4195}"/>
48+
<!--'Microsoft ASP.NET Core 3.1.0 - Shared Framework'-->
49+
<RelatedBundle Action="Upgrade" Id="{A65A6022-E10B-3AEF-802C-B9AFE0B000E2}"/>
50+
<?endif?>
51+
52+
<!-- Ensure upgrades from 3.1.0 thru 3.1.9 for x86. -->
53+
<?if $(var.Platform)=x86?>
54+
<!--'Microsoft ASP.NET Core 3.1.9 - Shared Framework'-->
55+
<RelatedBundle Action="Upgrade" Id="{BE2349EF-BC78-3E42-B29C-E61D12E02FE4}"/>
56+
<!--'Microsoft ASP.NET Core 3.1.8 - Shared Framework'-->
57+
<RelatedBundle Action="Upgrade" Id="{F9E1048A-39B9-3AE1-8AA1-6B054A204A84}"/>
58+
<!--'Microsoft ASP.NET Core 3.1.7 - Shared Framework'-->
59+
<RelatedBundle Action="Upgrade" Id="{48272B78-3954-3D58-AB75-27B31E0D0DBD}"/>
60+
<!--'Microsoft ASP.NET Core 3.1.6 - Shared Framework'-->
61+
<RelatedBundle Action="Upgrade" Id="{52FF933A-F022-3A0A-8200-4C0E8E3934C3}"/>
62+
<!--'Microsoft ASP.NET Core 3.1.5 - Shared Framework'-->
63+
<RelatedBundle Action="Upgrade" Id="{F8C888A3-46C2-3306-8C90-5622C65BEBE3}"/>
64+
<!--'Microsoft ASP.NET Core 3.1.4 - Shared Framework'-->
65+
<RelatedBundle Action="Upgrade" Id="{EC496CB3-526B-366D-B667-3A20354DB136}"/>
66+
<!--'Microsoft ASP.NET Core 3.1.3 - Shared Framework'-->
67+
<RelatedBundle Action="Upgrade" Id="{05780385-0142-3FAA-9B97-F785C4798EC1}"/>
68+
<!--'Microsoft ASP.NET Core 3.1.2 - Shared Framework'-->
69+
<RelatedBundle Action="Upgrade" Id="{4EBEC6A2-DB4C-396B-BAE7-890D1D7EB9B3}"/>
70+
<!--'Microsoft ASP.NET Core 3.1.1 - Shared Framework'-->
71+
<RelatedBundle Action="Upgrade" Id="{5F160755-5B95-32A7-8D4F-ED1BA9F959D1}"/>
72+
<!--'Microsoft ASP.NET Core 3.1.0 - Shared Framework'-->
73+
<RelatedBundle Action="Upgrade" Id="{AC05AAAB-C217-3B65-95FE-11D2CB07A485}"/>
74+
<?endif?>
75+
<?endif?>
76+
2777
<PayloadGroup Id="PG_Resources">
2878
<?foreach lcid in 2052;1028;1029;1031;3082;1036;1040;1041;1042;1045;1046;1049;1055?>
2979
<Payload Id="PL_thm_$(var.lcid)" SourceFile="$(var.lcid)\thm.wxl" Name="$(var.lcid)\thm.wxl" Compressed="yes"/>

src/Installers/Windows/WindowsHostingBundle/Bundle.wxs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,30 @@
1919
<RelatedBundle Action="Upgrade" Id="{EA47395A-BC9B-3ECC-8229-229BC9528DF6}"/>
2020
<?endif?>
2121

22+
<!-- Ensure upgrades from 3.1.0 thru 3.1.9 for x64. -->
23+
<?if $(var.MajorVersion)=3 and $(var.MinorVersion)=1?>
24+
<!--'Microsoft .NET Core 3.1.9 - Windows Server Hosting'-->
25+
<RelatedBundle Action="Upgrade" Id="{E4913286-9840-380A-8743-3DF839147FF0}"/>
26+
<!--'Microsoft .NET Core 3.1.8 - Windows Server Hosting'-->
27+
<RelatedBundle Action="Upgrade" Id="{81D96996-6F29-3BAC-82C6-9156FE1BD5FB}"/>
28+
<!--'Microsoft .NET Core 3.1.7 - Windows Server Hosting'-->
29+
<RelatedBundle Action="Upgrade" Id="{44D6EE78-0248-36AD-9B2C-26FA728E477D}"/>
30+
<!--'Microsoft .NET Core 3.1.6 - Windows Server Hosting'-->
31+
<RelatedBundle Action="Upgrade" Id="{C0453F97-42DD-3CD5-9FCE-018DD1F1A020}"/>
32+
<!--'Microsoft .NET Core 3.1.5 - Windows Server Hosting'-->
33+
<RelatedBundle Action="Upgrade" Id="{8BF71BDA-9BF7-3AD5-9E6B-3656FEEC95AA}"/>
34+
<!--'Microsoft .NET Core 3.1.4 - Windows Server Hosting'-->
35+
<RelatedBundle Action="Upgrade" Id="{6CF8B606-EE26-3536-BEFE-410EA70DBB94}"/>
36+
<!--'Microsoft .NET Core 3.1.3 - Windows Server Hosting'-->
37+
<RelatedBundle Action="Upgrade" Id="{71F4232E-75BF-32AF-9A8F-1E87CC17CC6C}"/>
38+
<!--'Microsoft .NET Core 3.1.2 - Windows Server Hosting'-->
39+
<RelatedBundle Action="Upgrade" Id="{3CDBE509-D166-335B-BD17-EA6FDAC4E03A}"/>
40+
<!--'Microsoft .NET Core 3.1.1 - Windows Server Hosting'-->
41+
<RelatedBundle Action="Upgrade" Id="{62155173-E27B-3936-997F-56DA96ED19B5}"/>
42+
<!--'Microsoft .NET Core 3.1.0 - Windows Server Hosting'-->
43+
<RelatedBundle Action="Upgrade" Id="{6F741175-2F75-3845-B30B-6C364101EAA2}"/>
44+
<?endif?>
45+
2246
<PayloadGroup Id="PG_Resources">
2347
<?foreach lcid in 2052;1028;1029;1031;3082;1036;1040;1041;1042;1045;1046;1049;1055?>
2448
<Payload Id="PL_thm_$(var.lcid)" SourceFile="$(var.lcid)\thm.wxl" Name="$(var.lcid)\thm.wxl" Compressed="yes"/>

src/Installers/Windows/Wix.targets

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<Project>
22
<!-- Set versioning properties after Arcade SDK targets have been imported. -->
33
<PropertyGroup>
4-
<!-- Used for generating stable upgrade codes for bundles -->
5-
<Version>$(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion).$(AspNetCorePatchVersion).0</Version>
64
<!-- Actual upgrade code used in bundles to ensure upgrades withing a version band, e.g. 3.0.0.xxx -->
75
<_FileRevisionVersion>$(VersionSuffixDateStamp)</_FileRevisionVersion>
86
<_FileRevisionVersion Condition=" '$(_FileRevisionVersion)' == '' ">42424</_FileRevisionVersion>
9-
<BundleVersion>$(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion).$(AspNetCorePatchVersion).$(_FileRevisionVersion)</BundleVersion>
7+
<BundleVersion>$(AspNetCoreMajorMinorVersion).$(AspNetCorePatchVersion).$(_FileRevisionVersion)</BundleVersion>
8+
<!-- Used for generating stable upgrade codes for bundles -->
9+
<Version>$(BundleVersion)</Version>
1010

1111
<!-- ARM64 MSIs require the installer version to be at least 500. -->
1212
<!-- See: https://docs.microsoft.com/en-us/windows/win32/msi/64-bit-windows-installer-packages -->
@@ -26,7 +26,7 @@
2626
</PropertyGroup>
2727

2828
<PropertyGroup>
29-
<GuidInputs>$(Version);$(Platform);$(VersionSuffix);$(_BuildNumberLabels)</GuidInputs>
29+
<GuidInputs>$(Version);$(Platform);$(VersionSuffix)</GuidInputs>
3030
</PropertyGroup>
3131

3232
<ItemGroup>
@@ -61,7 +61,7 @@
6161
the upgrade code. Bundle upgrades pivot on Major.Minor.Patch changes. For example, 3.0.1-preview 1 can upgrade to 3.0.1-preview 8, but 3.0.1
6262
cannot upgrade to 3.0.2 or 3.1. -->
6363
<PropertyGroup>
64-
<BundleGuidInputs>$(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion).$(AspNetCorePatchVersion);$(Platform)</BundleGuidInputs>
64+
<BundleGuidInputs>$(AspNetCoreMajorMinorVersion);$(Platform)</BundleGuidInputs>
6565
</PropertyGroup>
6666
<GenerateGuid NamespaceGuid="$(NamespaceGuid)" Values="$(BundleGuidInputs)">
6767
<Output TaskParameter="Guid" PropertyName="BundleProviderKey" />

0 commit comments

Comments
 (0)