Change Server Editor to Display Server File Version instead of Informational Version
This commit is contained in:
parent
2a7f2e303e
commit
5d939b614d
1 changed files with 2 additions and 2 deletions
|
@ -86,9 +86,9 @@ namespace WebsitePanel.Server.Code
|
|||
|
||||
public static string GetServerVersion()
|
||||
{
|
||||
object[] attrs = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute), true);
|
||||
object[] attrs = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyFileVersionAttribute), true);
|
||||
if (attrs.Length > 0)
|
||||
return ((AssemblyInformationalVersionAttribute)attrs[0]).InformationalVersion;
|
||||
return ((AssemblyFileVersionAttribute)attrs[0]).Version;
|
||||
else
|
||||
return typeof(AutoDiscoveryHelper).Assembly.GetName().Version.ToString(3);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue