How do get a dll version at run time?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to show the user the version number of the dll so that the user can report that to me when there is a problem
How is this done? I can see tht the file version changes as I am developing, but I don't know how to retrieve this information in VB

My programs are written in VB using VS 2003

Thanks

Ji
 
System.Reflection.Assebly.GetExecutingAssembly().GetName().Version will return a Version object

Calling ToString on it will get you the entire number (eg 1.2.200.1753). It also has properties that return major, minor, build, and revision numbers
 
Back
Top