Skip to content

Commit

Permalink
About details for Assembly version better
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed Sep 26, 2021
1 parent f7abab9 commit 7750b39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion FetchXmlBuilder/Forms/About.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;
Expand All @@ -24,8 +25,10 @@ private void PopulateAssemblies()

private ListViewItem GetListItem(AssemblyName a)
{
var assembly = Assembly.Load(a);
var fi = FileVersionInfo.GetVersionInfo(assembly.Location);
var item = new ListViewItem(a.Name);
item.SubItems.Add(a.Version.ToString());
item.SubItems.Add(fi.FileVersion.ToString());
return item;
}

Expand Down

0 comments on commit 7750b39

Please sign in to comment.