diff --git a/src/client/Microsoft.Identity.Client/PlatformsCommon/Shared/DesktopOsHelper.cs b/src/client/Microsoft.Identity.Client/PlatformsCommon/Shared/DesktopOsHelper.cs index f9e6e8aa33..d6c67212fe 100644 --- a/src/client/Microsoft.Identity.Client/PlatformsCommon/Shared/DesktopOsHelper.cs +++ b/src/client/Microsoft.Identity.Client/PlatformsCommon/Shared/DesktopOsHelper.cs @@ -52,8 +52,7 @@ public static bool IsMac() #elif NETFRAMEWORK return Environment.OSVersion.Platform == PlatformID.MacOSX; #elif NET8_0_OR_GREATER - string OSDescription = RuntimeInformation.OSDescription; - return OSDescription.Contains("Darwin", StringComparison.OrdinalIgnoreCase); + return OperatingSystem.IsMacOS(); #else return RuntimeInformation.IsOSPlatform(OSPlatform.OSX); #endif