diff --git a/src/Microsoft.TestPlatform.Utilities/InferRunSettingsHelper.cs b/src/Microsoft.TestPlatform.Utilities/InferRunSettingsHelper.cs index 6087dbb2e4..5fe1d6ded5 100644 --- a/src/Microsoft.TestPlatform.Utilities/InferRunSettingsHelper.cs +++ b/src/Microsoft.TestPlatform.Utilities/InferRunSettingsHelper.cs @@ -703,12 +703,7 @@ private static bool IsSettingIncompatible(Architecture sourcePlatform, private static bool IsPlatformIncompatible(Architecture sourcePlatform, Architecture targetPlatform) { return sourcePlatform is not Architecture.Default and not Architecture.AnyCPU - && (targetPlatform == Architecture.X64 && !Is64BitOperatingSystem() || sourcePlatform != targetPlatform); - - static bool Is64BitOperatingSystem() - { - return Environment.Is64BitOperatingSystem; - } + && (targetPlatform == Architecture.X64 && !Environment.Is64BitOperatingSystem || sourcePlatform != targetPlatform); } ///