Skip to content

Fix macOS detection to include maccatalyst target in desktop platform checks#5882

Merged
bgavrilMS merged 4 commits intomainfrom
asram/fix-mac-catalyst-issue-with-dotnet10
Mar 30, 2026
Merged

Fix macOS detection to include maccatalyst target in desktop platform checks#5882
bgavrilMS merged 4 commits intomainfrom
asram/fix-mac-catalyst-issue-with-dotnet10

Conversation

@ashok672
Copy link
Copy Markdown
Contributor

Fixes #5590

Update desktop OS detection to treat Mac Catalyst as macOS by combining OperatingSystem.IsMacOS() with OperatingSystem.IsMacCatalystVersionAtLeast(13, 1).
This resolves PlatformNotSupportedException in Mac Catalyst system-browser interactive authentication flows.

@ashok672 ashok672 requested a review from a team as a code owner March 24, 2026 00:17
Copilot AI review requested due to automatic review settings March 24, 2026 00:17
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates desktop OS detection in MSAL.NET to recognize Mac Catalyst as “macOS” for desktop-only behaviors (notably default-system-browser launching), addressing PlatformNotSupportedException failures seen in Mac Catalyst interactive flows on newer .NET runtimes.

Changes:

  • Extend DesktopOsHelper.IsMac() to return true for Mac Catalyst (in NET8_0_OR_GREATER builds).

Copilot AI review requested due to automatic review settings March 28, 2026 01:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@ashok672 ashok672 changed the title Fix macOS detection to include Mac Catalyst in desktop platform checks Fix macOS detection to include maccatalyst target in desktop platform checks Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] macOS version not supported when attempting to start default browser after upgrading to .net 10

5 participants