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.EnterpriseServer
|
||||||
litUrl.Text = url.Substring(0, url.LastIndexOf("/"));
|
litUrl.Text = url.Substring(0, url.LastIndexOf("/"));
|
||||||
|
|
||||||
// set version
|
// set version
|
||||||
object[] attrs = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute), true);
|
object[] attrs = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyFileVersionAttribute), true);
|
||||||
if (attrs.Length > 0)
|
if (attrs.Length > 0)
|
||||||
litVersion.Text = ((AssemblyInformationalVersionAttribute)attrs[0]).InformationalVersion;
|
litVersion.Text = ((AssemblyFileVersionAttribute)attrs[0]).Version;
|
||||||
|
|
||||||
imgLogo.ImageUrl = Page.ClientScript.GetWebResourceUrl(
|
imgLogo.ImageUrl = Page.ClientScript.GetWebResourceUrl(
|
||||||
typeof(DefaultPage), "WebsitePanel.EnterpriseServer.Images.logo.png");
|
typeof(DefaultPage), "WebsitePanel.EnterpriseServer.Images.logo.png");
|
||||||
|
|
|
@ -49,9 +49,9 @@ namespace WebsitePanel.Server
|
||||||
litUrl.Text = url.Substring(0, url.LastIndexOf("/"));
|
litUrl.Text = url.Substring(0, url.LastIndexOf("/"));
|
||||||
|
|
||||||
// set version
|
// set version
|
||||||
object[] attrs = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute), true);
|
object[] attrs = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyFileVersionAttribute), true);
|
||||||
if(attrs.Length > 0)
|
if(attrs.Length > 0)
|
||||||
litVersion.Text = ((AssemblyInformationalVersionAttribute)attrs[0]).InformationalVersion;
|
litVersion.Text = ((AssemblyFileVersionAttribute)attrs[0]).Version;
|
||||||
|
|
||||||
// asp.net mode
|
// asp.net mode
|
||||||
litAspNetMode.Text = (IntPtr.Size == 8) ? "64-bit" : "32-bit";
|
litAspNetMode.Text = (IntPtr.Size == 8) ? "64-bit" : "32-bit";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue