From bce2d340b4b14cb0c08e36310b28b6dac1d98ba7 Mon Sep 17 00:00:00 2001 From: Medha Tiwari <75640645+medhatiwari@users.noreply.github.com> Date: Sun, 26 Oct 2025 22:41:35 +0530 Subject: [PATCH] Fix Mono detection --- src/Testing/src/TestPlatformHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Testing/src/TestPlatformHelper.cs b/src/Testing/src/TestPlatformHelper.cs index c72bea38d896..be175324d55a 100644 --- a/src/Testing/src/TestPlatformHelper.cs +++ b/src/Testing/src/TestPlatformHelper.cs @@ -9,7 +9,7 @@ namespace Microsoft.AspNetCore.InternalTesting; public static class TestPlatformHelper { public static bool IsMono => - Type.GetType("Mono.Runtime") != null; + Type.GetType("Mono.Runtime") != null || Type.GetType("Mono.RuntimeStructs") != null; public static bool IsWindows => RuntimeInformation.IsOSPlatform(OSPlatform.Windows);