MA0144 - Use System.OperatingSystem to check the current OS Use System.OperatingSystem to check the current OS instead of RuntimeInformation. RuntimeInformation.IsOSPlatform(OSPlatform.Windows); // non-compliant OperatingSystem.IsWindows(); // ok