Skip to content

Commit a8646e3

Browse files
authored
Fix .msi names (dotnet#28572)
1 parent f45bf46 commit a8646e3

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

eng/targets/Wix.Common.targets

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@
1818
</ItemDefinitionGroup>
1919

2020
<PropertyGroup Condition="'$(OutputType)' == 'package'">
21+
<!-- Set package version for SharedFx & TargetingPack wixproj's -->
22+
<!-- Everything built in those projects _except_ the final package & MSI are shipping assets. -->
23+
<_GeneratedPackageVersion>$(PackageVersion)</_GeneratedPackageVersion>
24+
<_GeneratedPackageVersion
25+
Condition="! $(PackageVersion.Contains('$(_PreReleaseLabel)'))">$(PackageVersion)-$(_PreReleaseLabel)$(_BuildNumberLabels)</_GeneratedPackageVersion>
26+
<!-- Insert PackageVersion into OutputName for SharedFx & TargetingPack -->
27+
<OutputName Condition="'$(OutputNamePrefix)' != '' AND '$(OutputNameSuffix)' != ''">$(OutputNamePrefix)$(_GeneratedPackageVersion)$(OutputNameSuffix)</OutputName>
28+
2129
<EmbedCab Condition="'$(EmbedCab)' == ''">yes</EmbedCab>
2230
<Cabinet Condition="'$(Cabinet)' == ''">$(OutputName.Replace('-', '_')).cab</Cabinet>
2331
<InstallDir>$(ProductName)</InstallDir>
2432

2533
<DefineConstants Condition="'$(Configuration)' == 'Debug'">$(DefineConstants);Debug</DefineConstants>
2634
<DefineConstants>$(DefineConstants);EmbedCab=$(EmbedCab)</DefineConstants>
2735
<DefineConstants>$(DefineConstants);Cabinet=$(Cabinet)</DefineConstants>
28-
29-
<!-- Set package version for SharedFx & TargetingPack wixproj's -->
30-
<!-- Everything built in those projects _except_ the final package & MSI are shipping assets. -->
31-
<_GeneratedPackageVersion>$(PackageVersion)</_GeneratedPackageVersion>
32-
<_GeneratedPackageVersion
33-
Condition="! $(PackageVersion.Contains('$(_PreReleaseLabel)'))">$(PackageVersion)-$(_PreReleaseLabel)$(_BuildNumberLabels)</_GeneratedPackageVersion>
34-
<!-- Insert PackageVersion into OutputName for SharedFx & TargetingPack -->
35-
<OutputName Condition="'$(OutputNamePrefix)' != '' AND '$(OutputNameSuffix)' != ''">$(OutputNamePrefix)$(_GeneratedPackageVersion)$(OutputNameSuffix)$(TargetExt)</OutputName>
3636
</PropertyGroup>
3737

3838
<PropertyGroup>

src/Installers/Windows/SharedFramework/SharedFramework.wixproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.targets))\Directory.Build.targets" />
8181

8282
<PropertyGroup>
83-
<PackageFileName>$(OutputName)</PackageFileName>
83+
<PackageFileName>$(OutputName)$(TargetExt)</PackageFileName>
8484
<ProductName>Microsoft ASP.NET Core $(PackageBrandingVersion) Shared Framework ($(Platform))</ProductName>
8585
<DefineConstants>$(DefineConstants);ProductName=$(ProductName)</DefineConstants>
8686
</PropertyGroup>

src/Installers/Windows/TargetingPack/TargetingPack.wixproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<PropertyGroup>
66
<OutputNamePrefix>$(TargetingPackInstallerBaseName)-</OutputNamePrefix>
77
<OutputNameSuffix>-win-$(Platform)</OutputNameSuffix>
8-
<ProductName>Microsoft ASP.NET Core $(PackageBrandingVersion) Targeting Pack ($(Platform))</ProductName>
98
<ProductNameFolder>Microsoft ASP.NET Core Targeting Pack</ProductNameFolder>
109
<ProductNameShort>AspNetCore.TargetingPack</ProductNameShort>
1110
<OutputType>Package</OutputType>
@@ -71,7 +70,8 @@
7170
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.targets))\Directory.Build.targets" />
7271

7372
<PropertyGroup>
74-
<PackageFileName>$(OutputName)</PackageFileName>
73+
<ProductName>Microsoft ASP.NET Core $(PackageBrandingVersion) Targeting Pack ($(Platform))</ProductName>
74+
<PackageFileName>$(OutputName)$(TargetExt)</PackageFileName>
7575
<DefineConstants>$(DefineConstants);ProductName=$(ProductName)</DefineConstants>
7676

7777
<!-- Suppresses building this project completely during servicing builds. -->

0 commit comments

Comments
 (0)