Changeset 2719


Ignore:
Timestamp:
6/3/2012 8:08:16 AM (2 years ago)
Author:
lowjoel
Message:

More changes to fix the Version information to display the File version and not the Assembly Version. Addresses http://eraser.heidi.ie/forum/viewtopic.php?f=2&t=8810.

Location:
branches/eraser6/6.0/Eraser
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/6.0/Eraser/Program.cs

    r2666 r2719  
    11941194(c) 2008 The Eraser Project 
    11951195Eraser is Open-Source Software: see http://eraser.heidi.ie/ for details. 
    1196 ", Assembly.GetExecutingAssembly().GetName().Version); 
     1196", FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).FileVersion); 
    11971197 
    11981198            Console.Out.Flush(); 
  • branches/eraser6/6.0/Eraser/SettingsPanel.cs

    r1677 r2719  
    7979            item.Group = e.Instance.IsCore ? pluginsManager.Groups[0] : 
    8080                pluginsManager.Groups[1]; 
    81             item.SubItems.Add(e.Instance.Assembly.GetName().Version.ToString()); 
     81            item.SubItems.Add(e.Instance.AssemblyInfo.Version.ToString()); 
    8282            item.SubItems.Add(e.Instance.Assembly.Location); 
    8383            item.Tag = e.Instance; 
  • branches/eraser6/6.0/Eraser/UpdateForm.cs

    r2305 r2719  
    3535using System.Net.Mime; 
    3636using System.Globalization; 
     37using System.Diagnostics; 
    3738 
    3839namespace Eraser 
     
    533534            HttpWebRequest req = (HttpWebRequest) 
    534535                WebRequest.Create(new Uri("http://eraser.heidi.ie/updates?action=listupdates&" + 
    535                     "version=" + Assembly.GetExecutingAssembly().GetName().Version.ToString())); 
     536                    "version=" + FileVersionInfo.GetVersionInfo( 
     537                        Assembly.GetExecutingAssembly().Location).FileVersion)); 
    536538             
    537539            using (WebResponse resp = req.GetResponse()) 
Note: See TracChangeset for help on using the changeset viewer.