I'm creating an update solution for an application that I have and I needed the Assembly version
When putting a * in the assembly.
[assembly: AssemblyVersion("1.0.0.*")]
It started incrementing automatically, however the shape you are incrementing is added 5 digits in the last house. Ex.
1.0.0.29058
I would like to know if you can set up the AssemblyVersion so that it automatically increments and with just one digit in the last box to make it easier to compare versions.
I'm getting the AssemblyVersion in the application as follows:
string versionAssembly = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
And the comparison I'm using in the application is:
if (Convert.ToDouble(version) >= Convert.ToDouble(versionAssembly))
{
//code here
}