Hi all,

 

A note on assembly versioning:  It is common to think of version numbers as
decimals.  For instance, we speak of ClearCanvas 0.9 and ClearCanvas 0.95,
and it seems intuitive to us that 0.95 > 0.9.  However, it is important to
note that the .NET System.Version class does not see things this way.  It
treats each component of a version string as an integer.

 

For example:

 

            System.Version v1 = new System.Version("0.9.0.0");

            System.Version v2 = new System.Version("0.90.0.0");

 

            V2 == v1 // false

            v2 > v1  // true

 

 


However, all of the assemblies for the 0.9 release were versioned as
0.9.0.0, which is incorrect.  In the future, we must take care to version
assemblies such that the version components are treated as integers.  The
enterprise configuration management plugin that I'm currently working on
relies on being able to make assembly version comparisons in order to
upgrade settings from one version to the next.

 

-jonathan

_______________________________________________
dev mailing list
[email protected]
http://clearcanvas.ca/mailman/listinfo/dev_clearcanvas.ca

Reply via email to