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 b834065 commit 4dd269eCopy full SHA for 4dd269e
src/client/Microsoft.Identity.Client/PlatformsCommon/Shared/DesktopOsHelper.cs
@@ -52,8 +52,7 @@ public static bool IsMac()
52
#elif NETFRAMEWORK
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);
+ return OperatingSystem.IsMacOS();
57
#else
58
return RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
59
#endif
0 commit comments