Ignore:
Timestamp:
6/19/2010 10:47:54 AM (5 years ago)
Author:
lowjoel
Message:

Define the GetFileVersion? assembly extension method to query assemblies for their file version (not manifest version, as previously used.) This is important since user-displayed versions should be file versions, not manifest versions used for module loading.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser/SettingsPanel.cs

    r1981 r2209  
    2929using System.Windows.Forms; 
    3030 
     31using Microsoft.Win32; 
     32using System.Globalization; 
     33using System.Threading; 
     34 
    3135using Eraser.Manager; 
    3236using Eraser.Manager.Plugin; 
    33 using Microsoft.Win32; 
    34 using System.Globalization; 
    3537using Eraser.Util; 
    36 using System.Threading; 
     38using Eraser.Util.ExtensionMethods; 
    3739 
    3840namespace Eraser 
     
    7981            item.Group = e.Instance.LoadingPolicy == LoadingPolicy.Core ? 
    8082                pluginsManager.Groups[0] : pluginsManager.Groups[1]; 
    81             item.SubItems.Add(e.Instance.Assembly.GetName().Version.ToString()); 
     83            item.SubItems.Add(e.Instance.Assembly.GetFileVersion().ToString()); 
    8284            item.SubItems.Add(e.Instance.Assembly.Location); 
    8385            item.Tag = e.Instance; 
Note: See TracChangeset for help on using the changeset viewer.