We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5c1ffb commit 49e6dbbCopy full SHA for 49e6dbb
src/client/Microsoft.Identity.Client/PlatformsCommon/Shared/DesktopOsHelper.cs
@@ -53,7 +53,10 @@ public static bool IsMac()
53
return Environment.OSVersion.Platform == PlatformID.MacOSX;
54
#elif NET8_0_OR_GREATER
55
string OSDescription = RuntimeInformation.OSDescription;
56
- return OSDescription.Contains("Darwin", StringComparison.OrdinalIgnoreCase);
+
57
+ // .NET 10 and later changes the OS string in `OSDescription`
58
+ return OSDescription.Contains("Darwin", StringComparison.OrdinalIgnoreCase) ||
59
+ OSDescription.Contains("macOS", StringComparison.OrdinalIgnoreCase);
60
#else
61
return RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
62
#endif
0 commit comments