mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07:00
feature<About>: show .NET framework version used by this application
This commit is contained in:
parent
866f137c02
commit
065aeb67ca
1 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
|
@ -17,7 +18,10 @@ namespace SourceGit.UI {
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
var asm = Assembly.GetExecutingAssembly().GetName();
|
var asm = Assembly.GetExecutingAssembly().GetName();
|
||||||
version.Content = $"VERSION : v{asm.Version.Major}.{asm.Version.Minor}";
|
var framework = AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName;
|
||||||
|
var dotnetVer = framework.Substring(framework.IndexOf("=") + 1);
|
||||||
|
|
||||||
|
version.Content = $"VERSION : v{asm.Version.Major}.{asm.Version.Minor} .NET : {dotnetVer}";
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in a new issue