Changeset 2135


Ignore:
Timestamp:
5/15/2010 11:04:13 PM (4 years ago)
Author:
lowjoel
Message:

Fixed querying of file version information. File version information is what we want, not the .NET assembly version, since that is now fixed for compatibility with other revisions.

Location:
trunk/eraser
Files:
2 edited

Legend:

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

    r1939 r2135  
    119119 
    120120                g.DrawString(string.Format(CultureInfo.CurrentCulture, versionString, 
    121                     Assembly.GetExecutingAssembly().GetName().Version, BuildInfo.BuildDate), 
     121                    BuildInfo.AssemblyFileVersion, BuildInfo.BuildDate), 
    122122                    Font, textBrush, new PointF(eraserPos.X + eraserSize.Width + 3, eraserPos.Y)); 
    123123 
  • trunk/eraser/Version.cs.in

    r2125 r2135  
    2121using System; 
    2222using System.Reflection; 
     23using System.Diagnostics; 
    2324 
    2425[assembly: AssemblyFileVersion("6.1.0.$WCREV$")] 
     
    3132            System.Globalization.CultureInfo.InvariantCulture); 
    3233        public const bool CustomBuild = $WCMODS?true:false$; 
     34        public static Version AssemblyFileVersion 
     35        { 
     36            get 
     37            { 
     38                FileVersionInfo version = FileVersionInfo.GetVersionInfo( 
     39                    Assembly.GetExecutingAssembly().Location); 
     40 
     41                return new Version(version.FileMajorPart, version.FileMinorPart, 
     42                    version.FileBuildPart, version.FilePrivatePart); 
     43            } 
     44        } 
    3345    } 
    3446} 
Note: See TracChangeset for help on using the changeset viewer.