Version number of current application
The other day I was writing an application that posted Journal Entries to QuickBooks and I wanted to include a memo line in the Journal Entry that not only included a timestamp but also included the version number of the application that posted the Journal Entry.
To my surprise it was not very simple to do but after several failed attempts and some Googling I figured it out:
Assembly.GetExecutingAssembly().GetName().Version.ToString()
This is in the System.Reflection namespace.
Technorati Tags: Assembly Version Number