Change EnterpriseServer and Server Components to display File Version instead of Informational Version to help support identify WSP Version.
This commit is contained in:
parent
3d32dada6b
commit
65e2705ec5
2 changed files with 4 additions and 4 deletions
|
@ -49,9 +49,9 @@ namespace WebsitePanel.Server
|
|||
litUrl.Text = url.Substring(0, url.LastIndexOf("/"));
|
||||
|
||||
// set version
|
||||
object[] attrs = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute), true);
|
||||
object[] attrs = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyFileVersionAttribute), true);
|
||||
if(attrs.Length > 0)
|
||||
litVersion.Text = ((AssemblyInformationalVersionAttribute)attrs[0]).InformationalVersion;
|
||||
litVersion.Text = ((AssemblyFileVersionAttribute)attrs[0]).Version;
|
||||
|
||||
// asp.net mode
|
||||
litAspNetMode.Text = (IntPtr.Size == 8) ? "64-bit" : "32-bit";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue