Quick Tip : Display the file version of your application in C#
Views (2014)
Quick Tip : Display the file version of your application in C#
To be able to display the version of your application can be very helpful, especially if you do support on the product and you need to find out what version the user is running.
Version numbers typically display as major number.minor number.build number.private part number
By using Application.ProductVersion you can quickly display the file version of the assembly.
private void PrintProductVersion() { textBox1.Text = "The product version is: " + Application.ProductVersion; }
How to set the file version of your application
Right click on the project
Click on the Assembly Information…
Set the File Version
More about software versioning:
https://en.wikipedia.org/wiki/Software_versioning
The post Quick Tip : Display the file version of your application in C# appeared first on Cup of dev - A blog for developers by Morne Wolfaardt.
This was originally posted here.
*This post is locked for comments