Ignore:
Timestamp:
6/19/2010 10:47:54 AM (2 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.Manager/Plugins.cs

    r2056 r2209  
    3131using System.Security.Cryptography; 
    3232using System.Security.Cryptography.X509Certificates; 
     33 
    3334using Eraser.Util; 
     35using Eraser.Util.ExtensionMethods; 
    3436 
    3537namespace Eraser.Manager.Plugin 
     
    438440 
    439441                AssemblyInfo info = new AssemblyInfo(); 
    440                 info.Version = assembly.GetName().Version; 
     442                info.Version = assembly.GetFileVersion(); 
    441443                IList<CustomAttributeData> attributes = CustomAttributeData.GetCustomAttributes(assembly); 
    442444                foreach (CustomAttributeData attr in attributes) 
Note: See TracChangeset for help on using the changeset viewer.