diff --git a/src/OpenCvSharp/Internal/PInvoke/NativeMethods/NativeMethods.cs b/src/OpenCvSharp/Internal/PInvoke/NativeMethods/NativeMethods.cs index 2d2cbf7ad7..4148fa051d 100644 --- a/src/OpenCvSharp/Internal/PInvoke/NativeMethods/NativeMethods.cs +++ b/src/OpenCvSharp/Internal/PInvoke/NativeMethods/NativeMethods.cs @@ -28,7 +28,7 @@ public static partial class NativeMethods private const UnmanagedType StringUnmanagedTypeNotWindows = #if NETSTANDARD2_0 - UnmanagedType.LPStr; + UnmanagedType.LPStr; #else UnmanagedType.LPUTF8Str; #endif @@ -169,8 +169,8 @@ public static bool IsUnix() RuntimeInformation.IsOSPlatform(OSPlatform.OSX) || RuntimeInformation.IsOSPlatform(OSPlatform.FreeBSD); #else - return RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || - RuntimeInformation.IsOSPlatform(OSPlatform.OSX); + return RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || + RuntimeInformation.IsOSPlatform(OSPlatform.OSX); #endif } @@ -189,10 +189,10 @@ public static bool IsMono() /// public static bool IsWasm() { -#if NET6_0 +#if NET5_0_OR_GREATER return RuntimeInformation.OSArchitecture == Architecture.Wasm; #else - return false; + return false; #endif }