Tim Hibbard

CEO for EnGraph software
posts - 626, comments - 1586, trackbacks - 459

My Links

News



Add to Google

Twitter












Tag Cloud

Article Categories

Archives

Post Categories

Image Galleries

EnGraph Blogs

Links

Other

Roll

.NET code to get version string and version date of current application

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: , ,

Print | posted on Thursday, February 08, 2007 10:30 AM | Filed Under [ .NET ]

Feedback

Gravatar

# re: .NET code to get version string and version date of current application

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!
7/19/2007 10:21 AM | R. Davis
Gravatar

# re: .NET code to get version string and version date of current application

this.Text will do it.
2/12/2009 12:29 AM | Rorik Melberg
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: