Increasing the AssemblyVersion

7

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
 }
    
asked by anonymous 02.04.2014 / 21:02

1 answer

6

In this case, putting * into your AssemblyInfo.cs file is getting the amount of seconds passed since midnight (following the

03.04.2014 / 01:50