We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e6d50d commit 87d1834Copy full SHA for 87d1834
1 file changed
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