Geeks With Blogs

News



Add to Google

Tim Hibbard CEO for EnGraph software

Because I always forget the syntax for this, here is my personal bookmark for the code to get version information of the current application:

DateTime fileDate = new System.IO.FileInfo(Application.ExecutablePath).LastWriteTime; string fileVersion = System.Diagnostics.FileVersionInfo.GetVersionInfo(Application.ExecutablePath).FileVersion;

 

Technorati tags: , ,
Posted on Thursday, February 8, 2007 10:30 AM .NET | Back to top


Comments on this post: .NET code to get version string and version date of current application

# re: .NET code to get version string and version date of current application
Requesting Gravatar...
Thanks for the code; any idea how to get the string displayed in the title bar from any app? -I'm struggling w/this one!
Left by R. Davis on Jul 19, 2007 10:21 AM

# re: .NET code to get version string and version date of current application
Requesting Gravatar...
this.Text will do it.
Left by Rorik Melberg on Feb 12, 2009 12:29 AM

Your comment:
 (will show your gravatar)


Copyright © Tim Hibbard | Powered by: GeeksWithBlogs.net