Code cleanup

This commit is contained in:
Szymon Porwolik
2021-02-17 21:11:56 +01:00
parent 54bf6686eb
commit 2bc1af827d
7 changed files with 79 additions and 81 deletions

View File

@@ -96,10 +96,13 @@ internal class PerunHelper
}
// Gets build version
public static string GetAppVersion(string strBeginning)
public static string GetAppVersion(string strBeginning, string strEnding = "")
{
Globals.VersionPerun = Assembly.GetExecutingAssembly().GetName().Version.ToString();
return strBeginning + "v" + Globals.VersionPerun;
#if DEBUG
Globals.VersionPerun = Globals.VersionPerun + "(d)";
#endif
return strBeginning + "v" + Globals.VersionPerun + strEnding;
}
public static int CheckVersions()