Click here to Skip to main content
15,905,071 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi there can someone explain to me how versioning your project works :)

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

What does each zero mean, because i'm so used to v1.0
Posted
Comments
Sergey Alexandrovich Kryukov 20-Feb-14 17:56pm    
Why not simply reading about it in standard MSDN documentation? What does it mean, "how does it work"? Do you know how .NET attributes work?
—SA
Nico_Travassos 20-Feb-14 17:58pm    
I tried to understand it but was not certain about it.
Sergey Alexandrovich Kryukov 20-Feb-14 18:14pm    
You concern is uncertain. I answered, but you need to explain what exactly is your problem.
—SA
PIEBALDconsult 20-Feb-14 18:17pm    
How would you like them to work?

1 solution

Please see my comment to the question. It means, in the order or writing: major, minor, build, revision. First in a list is most significant component, last one is the least significant; this ordering by significance is expressed in the natural ordering of instances of this class through the implementation of the comparison operators for this class. Please see:
http://msdn.microsoft.com/en-us/library/system.version%28v=vs.110%29.aspx[^].

See also: http://en.wikipedia.org/wiki/Order_theory[^].

Those words ("major", "minor"…) don't carry any special meaning. Note that they reflect Windows versioning approach which is most usually also used in other OS; it is not specific to .NET. For example, any file system object also gets such four version components. The components can be used to implement any reasonable versioning policy. The question "how does it work" is not definitive enough, not clear what is your concern.

Probably you can understand the operation using version objects if you understand how .NET attributes work:
http://en.wikipedia.org/wiki/Metadata_%28CLI%29[^],
http://msdn.microsoft.com/en-us/library/aa288454%28v=vs.71%29.aspx[^] (obsolete article, but good enough for understanding of the subject).

See also:
http://msdn.microsoft.com/en-us/library/system.reflection.assemblyversionattribute%28v=vs.110%29.aspx[^],
http://msdn.microsoft.com/en-us/library/system.reflection.assemblyfileversionattribute%28v=vs.110%29.aspx[^],
http://msdn.microsoft.com/en-us/library/system.attribute%28v=vs.110%29.aspx[^].

Any questions about that?

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900