Skip to content

Commit

Permalink
[dotnet] BIG HACK TO MAKE THINGS WORK
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne committed Jul 16, 2021
1 parent 9dbd8e2 commit 68c9a4e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<Project>
<Import Project="Sdk.props" Sdk="Microsoft.MacCatalyst.Sdk" Condition="'$(TargetPlatformIdentifier)' == 'MacCatalyst'" />

<Import Project="Sdk.props" Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.maccatalyst-arm64.SDKWorkaround" Condition="'$(TargetPlatformIdentifier)' == 'maccatalyst' And '$(RuntimeIdentifier)' == 'maccatalyst-arm64'" />

<ItemGroup Condition=" '$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '6.0')) ">
<SdkSupportedTargetPlatformIdentifier Include="maccatalyst" DisplayName="Mac Catalyst" />
</ItemGroup>
Expand Down
11 changes: 10 additions & 1 deletion dotnet/targets/WorkloadManifest.MacCatalyst.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"@PLATFORM_LOWERCASE@": {
"description": "Microsoft @PLATFORM@ SDK for .NET",
"packs": [
"Microsoft.NETCore.App.Runtime.AOT.Cross.maccatalyst-arm64.SDKWorkaround",
"Microsoft.@[email protected]",
"Microsoft.@[email protected]",
"Microsoft.@[email protected]"
Expand All @@ -25,6 +26,14 @@
"Microsoft.@[email protected]": {
"kind": "template",
"version": "@VERSION@"
}
},
"Microsoft.NETCore.App.Runtime.AOT.Cross.maccatalyst-arm64.SDKWorkaround": {
"kind": "Sdk",
"version": "@BUNDLED_NETCORE_PLATFORMS_PACKAGE_VERSION@",
"alias-to": {
"osx-x64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.maccatalyst-arm64",
"osx-arm64": "Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.maccatalyst-arm64",
}
},
}
}

0 comments on commit 68c9a4e

Please sign in to comment.