Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Updated Initialize.cs to show modern dotnet4+ versions #6128

Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion DNN Platform/Library/Common/Initialize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,17 @@ 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)
{
version = "4.8.1";
}

if (release >= 528040)
jeremy-farrance marked this conversation as resolved.
Show resolved Hide resolved
{
version = "4.8";
}
else

if (release >= 461808)
{
version = "4.7.2";
}
Expand Down