Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose the platform directly for apple products #55381

Merged
merged 3 commits into from
Jul 12, 2021

Conversation

lewing
Copy link
Member

@lewing lewing commented Jul 9, 2021

Fixes #54996

Fixes #53579

@lewing
Copy link
Member Author

lewing commented Jul 9, 2021

all infrastructure failures

…acos runtime packs & cleaned up a few errors
@steveisok steveisok marked this pull request as ready for review July 12, 2021 02:22
@steveisok
Copy link
Member

@rolfbjarne With this change, you'll need to remove the RuntimeConfig imports that are in your WorkloadManifest.targets files. Also, what runtime are we defaulting Xam.Mac to? Same question I asked in #53579 (comment)

@lewing lewing requested a review from radical July 12, 2021 13:30
@@ -54,4 +73,43 @@
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Runtime.MonoTargets.Sdk" />
</ImportGroup>

<PropertyGroup Condition="'$(TargetPlatformIdentifier)' == 'android' or '$(TargetPlatformIdentifier)' == 'macOS' or '$(TargetPlatformIdentifier)' == 'ios' or '$(TargetPlatformIdentifier)' == 'maccatalyst' or '$(TargetPlatformIdentifier)' == 'tvos' or ('$(RuntimeIdentifier)' == 'browser-wasm' and '$(UsingBrowserRuntimeWorkload)' == 'true')">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a strict enough check on macOS?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought it wasn't at first, but I believe macOS is the TFM for xam.mac. So, we wouldn't be interfering w/ anything else.

@steveisok
Copy link
Member

Failure is helix instance not having openssl installed and is unrelated.

@radical radical merged commit f280419 into dotnet:main Jul 12, 2021

<KnownRuntimePack Remove="Microsoft.NETCore.App" />
<KnownRuntimePack Include="Microsoft.NETCore.App"
TargetFramework="net6.0"
Copy link
Member

@akoeplinger akoeplinger Jul 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lewing @steveisok while this works for now, it'll break once we move to net7.0. Can you try whether doing this instead of the Remove works:

<KnownRuntimePack Update="Microsoft.NETCore.App"
                  LatestRuntimeFrameworkVersion="$(_MonoWorkloadRuntimePackPackageVersion)"
                  Condition="'%(RuntimePackLabels)' == 'Mono' and '%(TargetFramework)' == 'net$(TargetFrameworkVersion)'"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing

@ghost ghost locked as resolved and limited conversation to collaborators Aug 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
6 participants