views:

206

answers:

3

just adding a zero like below

[assembly: AssemblyVersion("2.03.406.2")]

results in 2.3.406.2

which is not what I want.

So this may not be possible?

+1  A: 

Each number represents a specific numerical value, Major, Minor, Build and Revision.

It isn't just an arbitary string.

AnthonyWJones
+5  A: 

Each portion of the assembly version is stored as a 16-bit integer, so no, it's not possible.

Sören Kuklau
+1  A: 

Probably you can read AssemblyFileVersionAttribute

AssemblyFileVersionAttribute[] attributes = (AssemblyFileVersionAttribute[])typeof(Program)
    .Assembly.GetCustomAttributes(typeof(AssemblyFileVersionAttribute), false);
Console.WriteLine(attributes[0].Version);
Mike Chaliy