Merge pull request #571 from erri120/issue-565

Print assembly version on startup
This commit is contained in:
Timothy Baldridge 2020-02-24 16:49:44 -07:00 committed by GitHub
commit ffd67c0c5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,9 +122,10 @@ namespace Wabbajack
try try
{ {
System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly(); var assembly = Assembly.GetExecutingAssembly();
FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location); var fvi = FileVersionInfo.GetVersionInfo(assembly.Location);
VersionDisplay = $"v{fvi.FileVersion}"; VersionDisplay = $"v{fvi.FileVersion}";
Utils.Log($"Wabbajack Version: {fvi.FileVersion}");
} }
catch (Exception ex) catch (Exception ex)
{ {