diff --git a/src/Lucene.Net/Util/Constants.cs b/src/Lucene.Net/Util/Constants.cs
index 4183d7de40..a49694c944 100644
--- a/src/Lucene.Net/Util/Constants.cs
+++ b/src/Lucene.Net/Util/Constants.cs
@@ -64,7 +64,7 @@ public static class Constants // LUCENENET specific - made static because all me
///
/// True iff running on SunOS.
- public static readonly bool SUN_OS = RuntimeInformation.IsOSPlatform(OSPlatform.Create("SunOS"));
+ public static readonly bool SUN_OS = RuntimeInformation.IsOSPlatform(OSPlatform.Create("SUNOS"));
///
/// True iff running on Mac OS X
@@ -72,7 +72,7 @@ public static class Constants // LUCENENET specific - made static because all me
///
/// True iff running on FreeBSD
- public static readonly bool FREE_BSD = RuntimeInformation.IsOSPlatform(OSPlatform.Create("FreeBSD"));
+ public static readonly bool FREE_BSD = RuntimeInformation.IsOSPlatform(OSPlatform.Create("FREEBSD"));
// Possible Values: X86, X64, Arm, Arm64
public static readonly string OS_ARCH = RuntimeInformation.OSArchitecture.ToString();
@@ -197,6 +197,8 @@ private static string GetFramework45PlusFromRegistry()
// Checking the version using >= will enable forward compatibility.
private static string CheckFor45PlusVersion(int releaseKey)
{
+ if (releaseKey >= 533320)
+ return "4.8.1";
if (releaseKey >= 460799)
return "4.8";
if (releaseKey >= 460798)
@@ -241,4 +243,4 @@ private static string ExtractString(string input, Regex pattern)
return (m.Groups.Count > 1) ? m.Groups[1].Value : string.Empty;
}
}
-}
\ No newline at end of file
+}