Fixed version displayed in title bar

This commit is contained in:
szporowolik
2019-10-19 12:26:18 +02:00
parent 22168d281f
commit fcb2f62646

View File

@@ -1,5 +1,6 @@
// This class gathers all helper functions // This class gathers all helper functions
using System; using System;
using System.Reflection;
internal class PerunHelper internal class PerunHelper
{ {
@@ -21,6 +22,10 @@ internal class PerunHelper
System.Deployment.Application.ApplicationDeployment cd = System.Deployment.Application.ApplicationDeployment.CurrentDeployment; System.Deployment.Application.ApplicationDeployment cd = System.Deployment.Application.ApplicationDeployment.CurrentDeployment;
Globals.strPerunVersion = cd.CurrentVersion.ToString(); Globals.strPerunVersion = cd.CurrentVersion.ToString();
} }
else
{
Globals.strPerunVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString();
}
return strBeginning+"v" + Globals.strPerunVersion; return strBeginning+"v" + Globals.strPerunVersion;
} }
} }