You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[API Proposal]: Make IsApplePlatform public #113262
When people want check if current application is running on Apple platforms, like macOS, iOS, watchOS, tvOS, they probably need to call OperatingSystem.IsMacOS() and OperatingSystem.IsIOS(), etc.
Perhaps we should provide a public method IsApplePlatform() .
This could be useful to select the correct library extension (i.e. *.dylib) in a DllImportResolver callback. See for example commit kleisauke/net-vips@0fa851c.
Activity
dotnet-policy-service commentedon Mar 7, 2025
Tagging subscribers to this area: @dotnet/area-system-runtime
See info in area-owners.md if you want to be subscribed.
kleisauke commentedon Mar 25, 2025
This could be useful to select the correct library extension (i.e.
*.dylib) in aDllImportResolvercallback. See for example commit kleisauke/net-vips@0fa851c.jeffhandley commentedon Jul 26, 2025
@lewing / @steveisok -- What are your thoughts on this? Any risk you can see in exposing this as a public property?
steveisok commentedon Jul 26, 2025
I don't see much risk. It's a conveinence when dealing with all the apple configurations.
bartonjs commentedon Sep 8, 2026
Video
Looks good as proposed
Expose `IsApplePlatforms` publicly in OperatingSystem