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 49e6dbb commit a18c778Copy full SHA for a18c778
src/client/Microsoft.Identity.Client/PlatformsCommon/Shared/DesktopOsHelper.cs
@@ -52,11 +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
-
57
- // .NET 10 and later changes the OS string in `OSDescription`
58
- return OSDescription.Contains("Darwin", StringComparison.OrdinalIgnoreCase) ||
59
- OSDescription.Contains("macOS", StringComparison.OrdinalIgnoreCase);
+ return OperatingSystem.IsMacOS();
60
#else
61
return RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
62
#endif
0 commit comments