From e55f00e1557de5ec2d99009ecebd76c5a01a1df9 Mon Sep 17 00:00:00 2001 From: Christoph Wille Date: Thu, 25 Mar 2021 15:16:36 +0100 Subject: [PATCH] Display .NET version ILSpy is running on in AboutPage --- ILSpy/AboutPage.cs | 3 +++ ILSpy/Properties/Resources.Designer.cs | 9 +++++++++ ILSpy/Properties/Resources.resx | 3 +++ 3 files changed, 15 insertions(+) diff --git a/ILSpy/AboutPage.cs b/ILSpy/AboutPage.cs index 2cdaf974d..825a17422 100644 --- a/ILSpy/AboutPage.cs +++ b/ILSpy/AboutPage.cs @@ -61,6 +61,9 @@ namespace ICSharpCode.ILSpy }; output.WriteLine(Resources.ILSpyVersion + RevisionClass.FullVersion); + string prodVersion = System.Diagnostics.FileVersionInfo.GetVersionInfo(typeof(Uri).Assembly.Location).ProductVersion; + output.WriteLine(Resources.NETFrameworkVersion + prodVersion); + if (StorePackageHelper.HasPackageIdentity) { output.WriteLine($"Package Name: {StorePackageHelper.GetPackageFamilyName()}"); diff --git a/ILSpy/Properties/Resources.Designer.cs b/ILSpy/Properties/Resources.Designer.cs index a9d05e2c2..a12ee2f4d 100644 --- a/ILSpy/Properties/Resources.Designer.cs +++ b/ILSpy/Properties/Resources.Designer.cs @@ -1776,6 +1776,15 @@ namespace ICSharpCode.ILSpy.Properties { } } + /// + /// Looks up a localized string similar to .NET version . + /// + public static string NETFrameworkVersion { + get { + return ResourceManager.GetString("NETFrameworkVersion", resourceCulture); + } + } + /// /// Looks up a localized string similar to New list. /// diff --git a/ILSpy/Properties/Resources.resx b/ILSpy/Properties/Resources.resx index 6ffbe63cd..8ffe3b836 100644 --- a/ILSpy/Properties/Resources.resx +++ b/ILSpy/Properties/Resources.resx @@ -609,6 +609,9 @@ Are you sure you want to continue? Misc + + .NET version + Name