diff --git a/SpineViewer/Program.cs b/SpineViewer/Program.cs index 907063d..b1f752b 100644 --- a/SpineViewer/Program.cs +++ b/SpineViewer/Program.cs @@ -1,5 +1,6 @@ using NLog; using System.Diagnostics; +using System.Reflection; namespace SpineViewer { @@ -25,6 +26,8 @@ namespace SpineViewer ///// //public static readonly string TempDir = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Name)).FullName; + public static string Version => Assembly.GetExecutingAssembly().GetCustomAttribute()?.InformationalVersion; + /// /// 程序日志器 /// @@ -46,7 +49,7 @@ namespace SpineViewer try { - Application.Run(new MainForm()); + Application.Run(new MainForm() { Text = $"SpineViewer - v{Version}"}); } catch (Exception ex) {