I want to be able to display the current version of a .NET application that I have deployed using the publish wizard. There is a nice option to automatically update the version number every time I publish my application.
I found another question (Automatically update version number) that had this to get the current version:
Assembly.GetExecutingAssembly().GetName().Version
This gets you the version you set in the project properties, but not the version that is automatically incremented each time you publish.