Change Server Editor to Display Server File Version instead of Informational Version

This commit is contained in:
Virtuworks 2012-09-23 20:29:40 -04:00
parent 2a7f2e303e
commit 5d939b614d

View file

@ -86,9 +86,9 @@ namespace WebsitePanel.Server.Code
public static string GetServerVersion() public static string GetServerVersion()
{ {
object[] attrs = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute), true); object[] attrs = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyFileVersionAttribute), true);
if (attrs.Length > 0) if (attrs.Length > 0)
return ((AssemblyInformationalVersionAttribute)attrs[0]).InformationalVersion; return ((AssemblyFileVersionAttribute)attrs[0]).Version;
else else
return typeof(AutoDiscoveryHelper).Assembly.GetName().Version.ToString(3); return typeof(AutoDiscoveryHelper).Assembly.GetName().Version.ToString(3);
} }