|
99 | 99 | <BundleRegName>$(BundleNameFull)</BundleRegName>
|
100 | 100 | </PropertyGroup>
|
101 | 101 |
|
| 102 | + <!-- CrossArchitectureInstallerBasePath is a global property, so use a new property instead of modifying it --> |
| 103 | + <PropertyGroup Condition="'$(AddVersionToCrossArchitectureInstallerBasePath)' == 'true'"> |
| 104 | + <CrossArchitectureInstallerBasePathNormalized>$([MSBuild]::NormalizeDirectory('$(CrossArchitectureInstallerBasePath)', 'aspnetcore', 'Runtime', '$(SharedFxMsiVersion)'))</CrossArchitectureInstallerBasePathNormalized> |
| 105 | + </PropertyGroup> |
| 106 | + |
| 107 | + <PropertyGroup Condition="'$(AddVersionToCrossArchitectureInstallerBasePath)' != 'true'"> |
| 108 | + <CrossArchitectureInstallerBasePathNormalized>$(CrossArchitectureInstallerBasePath)</CrossArchitectureInstallerBasePathNormalized> |
| 109 | + </PropertyGroup> |
| 110 | + |
102 | 111 | <ItemGroup>
|
103 |
| - <SharedFxInstallers Include="$(CrossArchitectureInstallerBasePath)$(RuntimeInstallerBaseName)-$(SharedFxMsiVersion)-win-x64.msi"> |
| 112 | + <SharedFxInstallers Include="$(CrossArchitectureInstallerBasePathNormalized)$(RuntimeInstallerBaseName)-$(SharedFxMsiVersion)-win-x64.msi"> |
104 | 113 | <TargetPlatform>x64</TargetPlatform>
|
105 | 114 | <BundleNameProperty>SharedFxRedistInstallerx64</BundleNameProperty>
|
106 | 115 | <Version>$(SharedFxPackageVersion)</Version>
|
107 | 116 | </SharedFxInstallers>
|
108 |
| - <SharedFxInstallers Include="$(CrossArchitectureInstallerBasePath)$(RuntimeInstallerBaseName)-$(SharedFxMsiVersion)-win-x86.msi"> |
| 117 | + <SharedFxInstallers Include="$(CrossArchitectureInstallerBasePathNormalized)$(RuntimeInstallerBaseName)-$(SharedFxMsiVersion)-win-x86.msi"> |
109 | 118 | <TargetPlatform>x86</TargetPlatform>
|
110 | 119 | <BundleNameProperty>SharedFxRedistInstallerx86</BundleNameProperty>
|
111 | 120 | <Version>$(SharedFxPackageVersion)</Version>
|
112 | 121 | </SharedFxInstallers>
|
113 |
| - <SharedFxInstallers Include="$(CrossArchitectureInstallerBasePath)$(RuntimeInstallerBaseName)-$(SharedFxMsiVersion)-win-arm64.msi"> |
| 122 | + <SharedFxInstallers Include="$(CrossArchitectureInstallerBasePathNormalized)$(RuntimeInstallerBaseName)-$(SharedFxMsiVersion)-win-arm64.msi"> |
114 | 123 | <TargetPlatform>arm64</TargetPlatform>
|
115 | 124 | <BundleNameProperty>SharedFxRedistInstallerarm64</BundleNameProperty>
|
116 | 125 | <Version>$(SharedFxPackageVersion)</Version>
|
|
127 | 136 | <DefineConstants>$(DefineConstants);BundleRegManufacturer=$(BundleRegManufacturer)</DefineConstants>
|
128 | 137 | <DefineConstants>$(DefineConstants);BundleRegFamily=$(BundleRegFamily)</DefineConstants>
|
129 | 138 | <DefineConstants>$(DefineConstants);BundleRegName=$(BundleRegName)</DefineConstants>
|
130 |
| - <DefineConstants>$(DefineConstants);CrossArchitectureInstallerBasePath=$(CrossArchitectureInstallerBasePath)</DefineConstants> |
| 139 | + <DefineConstants>$(DefineConstants);CrossArchitectureInstallerBasePath=$(CrossArchitectureInstallerBasePathNormalized)</DefineConstants> |
131 | 140 | </PropertyGroup>
|
132 | 141 |
|
133 | 142 | <Target Name="ExtractPropertiesFromSharedFxMsi" DependsOnTargets="FetchDependencies" AfterTargets="ResolveProjectReferences">
|
|
0 commit comments