Skip to content

Commit d0c9558

Browse files
committed
Use osx-x64 NetStandardTargetingPack for osx-arm64
1 parent 8dc9bd5 commit d0c9558

File tree

3 files changed

+8
-25
lines changed

3 files changed

+8
-25
lines changed

src/redist/targets/GenerateLayout.targets

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@
5959
<DownloadedArm64NetCoreAppHostPackInstallerFileName Condition=" '$(InstallerExtension)' != '' ">dotnet-apphost-pack-$(MicrosoftNETCoreAppHostPackageVersion)-$(SharedFrameworkInstallerFileRid)_arm64$(InstallerExtension)</DownloadedArm64NetCoreAppHostPackInstallerFileName>
6060
<DownloadedWindowsDesktopTargetingPackInstallerFileName Condition=" '$(InstallerExtension)' != '' ">windowsdesktop-targeting-pack-$(MicrosoftWindowsDesktopAppRefPackageVersion)-$(SharedFrameworkInstallerFileRid)$(InstallerExtension)</DownloadedWindowsDesktopTargetingPackInstallerFileName>
6161
<DownloadedNetStandardTargetingPackInstallerFileName Condition=" '$(InstallerExtension)' != '' ">netstandard-targeting-pack-$(NETStandardLibraryRefPackageVersion)-$(SharedFrameworkInstallerFileRid)$(InstallerExtension)</DownloadedNetStandardTargetingPackInstallerFileName>
62+
<!-- osx-arm64 netstandard targeting pack pkg is unavailable. Use osx-x64.
63+
This should be OK, because the package is just a compressed file containing reference assemblies and
64+
runtime independent manifest text files.
65+
-->
66+
<DownloadedNetStandardTargetingPackInstallerFileName Condition="'$(SharedFrameworkInstallerFileRid)' == 'osx-arm64'">netstandard-targeting-pack-$(NETStandardLibraryRefPackageVersion)-osx-x64$(InstallerExtension)</DownloadedNetStandardTargetingPackInstallerFileName>
6267
<NetStandardTargetingPackTargetFramework>netstandard$(NETStandardLibraryRefPackageVersion.Split('.')[0])$(NETStandardLibraryRefPackageVersion.Split('.')[1])</NetStandardTargetingPackTargetFramework>
6368

6469
<!-- Use the portable "linux-x64" Rid when downloading Linux shared framework compressed file. -->
@@ -189,7 +194,7 @@
189194

190195
<!-- TODO: Should we somehow obtain a .NET Standard ARM64 package? -->
191196
<BundledInstallerComponent Include="DownloadedNetStandardTargetingPackInstallerFile"
192-
Condition="'$(SkipBuildingInstallers)' != 'true' And '$(InstallerExtension)' != '' And !$(Architecture.StartsWith('arm'))">
197+
Condition="'$(SkipBuildingInstallers)' != 'true' And '$(InstallerExtension)' != '' And (!$(Architecture.StartsWith('arm')) or '$(Rid)' == 'osx-arm64')">
193198
<BaseUrl>$(CoreSetupRootUrl)$(NETCoreAppTargetingPackBlobVersion)</BaseUrl>
194199
<BaseUrl>$(CoreSetupRootUrl)3.0.0</BaseUrl>
195200
<DownloadFileName>$(DownloadedNetStandardTargetingPackInstallerFileName)</DownloadFileName>

src/redist/targets/GeneratePKG.targets

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -103,22 +103,6 @@
103103
<ReplacementString>$(MicrosoftAspNetCoreAppRuntimePackageVersion)</ReplacementString>
104104
</ResourcesReplacement>
105105
</ItemGroup>
106-
<ItemGroup Condition="'$(Architecture)' != 'arm64'" >
107-
<DistributionTemplateReplacement Include="{NetStandardTargetingPackDisableBegin}">
108-
<ReplacementString></ReplacementString>
109-
</DistributionTemplateReplacement>
110-
<DistributionTemplateReplacement Include="{NetStandardTargetingPackDisableEnd}">
111-
<ReplacementString></ReplacementString>
112-
</DistributionTemplateReplacement>
113-
</ItemGroup>
114-
<ItemGroup Condition="'$(Architecture)' == 'arm64'" >
115-
<DistributionTemplateReplacement Include="{NetStandardTargetingPackDisableBegin}">
116-
<ReplacementString><![CDATA[<!--]]></ReplacementString>
117-
</DistributionTemplateReplacement>
118-
<DistributionTemplateReplacement Include="{NetStandardTargetingPackDisableEnd}">
119-
<ReplacementString><![CDATA[-->]]></ReplacementString>
120-
</DistributionTemplateReplacement>
121-
</ItemGroup>
122106

123107
<!-- Consumed By Publish -->
124108
<ItemGroup>
@@ -197,16 +181,16 @@
197181
$(DownloadsFolder)$(DownloadedSharedFrameworkInstallerFileName);
198182
$(DownloadsFolder)$(DownloadedNetCoreAppTargetingPackInstallerFileName);
199183
$(DownloadsFolder)$(DownloadedNetCoreAppHostPackInstallerFileName);
184+
$(DownloadsFolder)$(DownloadedNetStandardTargetingPackInstallerFileName);
200185
$(DownloadsFolder)$(DownloadedHostFxrInstallerFileName);
201186
$(DownloadsFolder)$(DownloadedSharedHostInstallerFileName)" />
202-
<PkgComponentsSourceFiles Condition="'$(Architecture)' != 'arm64'" Include="$(DownloadsFolder)$(DownloadedNetStandardTargetingPackInstallerFileName)" />
203187
<PkgComponentsDestinationFiles Include="$(SdkPkgIntermediatePath);
204188
$(SharedFrameworkPkgIntermediatePath);
205189
$(NetCoreAppTargetingPackPkgIntermediatePath);
206190
$(NetCoreAppHostPackPkgIntermediatePath);
191+
$(NetStandardTargetingPackPkgIntermediatePath);
207192
$(HostFxrPkgIntermediatePath);
208193
$(SharedHostPkgIntermediatePath)" />
209-
<PkgComponentsDestinationFiles Condition="'$(Architecture)' != 'arm64'" Include="$(NetStandardTargetingPackPkgIntermediatePath)" />
210194
</ItemGroup>
211195

212196
<!-- Move ProductArchive pkg components into place with component ids in the filenames -->

src/redist/targets/packaging/osx/clisdk/Distribution-Template

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
</volume-check>
1313
<choices-outline>
1414
<line choice="{NetCoreAppTargetingPackComponentId}.pkg" />
15-
{NetStandardTargetingPackDisableBegin}
1615
<line choice="{NetStandardTargetingPackComponentId}.pkg" />
17-
{NetStandardTargetingPackDisableEnd}
1816
<line choice="{NetCoreAppHostPackComponentId}.pkg" />
1917
<line choice="{SharedFxComponentId}.pkg" />
2018
<line choice="{HostFxrComponentId}.pkg" />
@@ -24,11 +22,9 @@
2422
<choice id="{NetCoreAppTargetingPackComponentId}.pkg" visible="true" title="{NetCoreAppTargetingPackBrandName} ({arch})" description="The .NET Targeting Pack">
2523
<pkg-ref id="{NetCoreAppTargetingPackComponentId}.pkg" />
2624
</choice>
27-
{NetStandardTargetingPackDisableBegin}
2825
<choice id="{NetStandardTargetingPackComponentId}.pkg" visible="true" title="{NetStandardTargetingPackBrandName} ({arch})" description="The .NET Standard 2.1 Targeting Pack">
2926
<pkg-ref id="{NetStandardTargetingPackComponentId}.pkg" />
3027
</choice>
31-
{NetStandardTargetingPackDisableEnd}
3228
<choice id="{NetCoreAppHostPackComponentId}.pkg" visible="true" title="{NetCoreAppHostPackBrandName} ({arch})" description="The .NET App Host Pack">
3329
<pkg-ref id="{NetCoreAppHostPackComponentId}.pkg" />
3430
</choice>
@@ -45,9 +41,7 @@
4541
<pkg-ref id="{CLISdkComponentId}.pkg"/>
4642
</choice>
4743
<pkg-ref id="{NetCoreAppTargetingPackComponentId}.pkg">{NetCoreAppTargetingPackComponentId}.pkg</pkg-ref>
48-
{NetStandardTargetingPackDisableBegin}
4944
<pkg-ref id="{NetStandardTargetingPackComponentId}.pkg">{NetStandardTargetingPackComponentId}.pkg</pkg-ref>
50-
{NetStandardTargetingPackDisableEnd}
5145
<pkg-ref id="{NetCoreAppHostPackComponentId}.pkg">{NetCoreAppHostPackComponentId}.pkg</pkg-ref>
5246
<pkg-ref id="{SharedFxComponentId}.pkg">{SharedFxComponentId}.pkg</pkg-ref>
5347
<pkg-ref id="{HostFxrComponentId}.pkg">{HostFxrComponentId}.pkg</pkg-ref>

0 commit comments

Comments
 (0)