add versioninfo in nonclientarea
This commit is contained in:
1 parent
5e31009dcf
commit
19be9982c2
11 files changed
+76
-40
No files matched your search
@@ -1,6 +1,5 @@
|
||||
using System.Diagnostics;
|
||||
using System.Reflection;
|
||||
using System.Windows;
|
||||
using System.Windows;
|
||||
using HandyControlDemo.Tools;
|
||||
|
||||
namespace HandyControlDemo.Window
|
||||
{
|
||||
@@ -11,27 +10,8 @@ namespace HandyControlDemo.Window
|
||||
InitializeComponent();
|
||||
|
||||
DataContext = this;
|
||||
|
||||
var versionInfo = FileVersionInfo.GetVersionInfo(Assembly.GetEntryAssembly().Location);
|
||||
CopyRight = versionInfo.LegalCopyright;
|
||||
#if NET40
|
||||
var netVersion = "NET 40";
|
||||
#elif NET45
|
||||
var netVersion = "NET 45";
|
||||
#elif NET462
|
||||
var netVersion = "NET 462";
|
||||
#elif NET47
|
||||
var netVersion = "NET 47";
|
||||
#elif NET48
|
||||
var netVersion = "NET 48";
|
||||
#elif NET5_0
|
||||
var netVersion = "NET 50";
|
||||
#elif NETCOREAPP3_0
|
||||
var netVersion = "CORE 30";
|
||||
#elif NETCOREAPP3_1
|
||||
var netVersion = "CORE 31";
|
||||
#endif
|
||||
Version = $"v {versionInfo.FileVersion} {netVersion}";
|
||||
CopyRight = VersionHelper.GetCopyright();
|
||||
Version = VersionHelper.GetVersion();
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty CopyRightProperty = DependencyProperty.Register(
|
||||
|
||||
Reference in new issue
Block a user