diff --git a/DNN Platform/Library/Common/Initialize.cs b/DNN Platform/Library/Common/Initialize.cs index 48797d556c4..30576634b5a 100644 --- a/DNN Platform/Library/Common/Initialize.cs +++ b/DNN Platform/Library/Common/Initialize.cs @@ -383,13 +383,19 @@ private static Version GetNETFrameworkVersion() // Otherwise utilize release DWORD from registry to determine version // Reference List: https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/versions-and-dependencies var release = GetDotNet4ReleaseNumberFromRegistry(); + if (release >= 533320) + { + return new Version("4.8.1"); + } + if (release >= 528040) { - version = "4.8"; + return new Version("4.8"); } - else + + if (release >= 461808) { - version = "4.7.2"; + return new Version("4.7.2"); } return new Version(version);