From 1a070e3f8e525168f1c152680882de7543653afc Mon Sep 17 00:00:00 2001 From: Jeremy Farrance Date: Sat, 28 Sep 2024 22:47:27 -0500 Subject: [PATCH] Change the string format of the NETFramework version from ToString(2) to ToString(3) to show the full 3 part .NET Framework version number in the PersonaBar --- .../Components/Prompt/Models/HostModel.cs | 2 +- .../Dnn.PersonaBar.UI/Services/ServerSummaryController.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/Components/Prompt/Models/HostModel.cs b/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/Components/Prompt/Models/HostModel.cs index 657c5fc09d7..12b5c916d56 100644 --- a/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/Components/Prompt/Models/HostModel.cs +++ b/Dnn.AdminExperience/Dnn.PersonaBar.Extensions/Components/Prompt/Models/HostModel.cs @@ -63,7 +63,7 @@ public static HostModel Current() Version = "v." + Globals.FormatVersion(application.Version, true), Product = application.Description, UpgradeAvailable = upgradeIndicator != null, - Framework = isHost ? Globals.NETFrameworkVersion.ToString(2) : string.Empty, + Framework = isHost ? Globals.NETFrameworkVersion.ToString(3) : string.Empty, IpAddress = System.Net.Dns.GetHostEntry(hostName).AddressList[0].ToString(), Permissions = DotNetNuke.Framework.SecurityPolicy.Permissions, Site = hostPortal.PortalName, diff --git a/Dnn.AdminExperience/Library/Dnn.PersonaBar.UI/Services/ServerSummaryController.cs b/Dnn.AdminExperience/Library/Dnn.PersonaBar.UI/Services/ServerSummaryController.cs index fdc30272355..699fa40760b 100644 --- a/Dnn.AdminExperience/Library/Dnn.PersonaBar.UI/Services/ServerSummaryController.cs +++ b/Dnn.AdminExperience/Library/Dnn.PersonaBar.UI/Services/ServerSummaryController.cs @@ -51,7 +51,7 @@ public HttpResponseMessage GetServerInfo() { ProductName = DotNetNukeContext.Current.Application.Description, ProductVersion = "v. " + Globals.FormatVersion(DotNetNukeContext.Current.Application.Version, true), - FrameworkVersion = isHost ? Globals.NETFrameworkVersion.ToString(2) : string.Empty, + FrameworkVersion = isHost ? Globals.NETFrameworkVersion.ToString(3) : string.Empty, ServerName = isHost ? Globals.ServerName : string.Empty, LicenseVisible = isHost && this.GetVisibleSetting("LicenseVisible"), DocCenterVisible = this.GetVisibleSetting("DocCenterVisible"),