At work we use TFS for source control and NAnt for building our application, yesterday our NAnt build started failing with the following error message ”Assembly generation The version ‘2.7.1.65559’ specified for the ‘file version’ is not in the normal ‘major.minor.build.revision’ format”
After a quick Google search it turns out that each segment in a .net assembly cannot be larger then 65534. We use the TFS changeset for the revision segment but this will no longer work for us as we are now beyond changeset 65534 - doh! As a work around we are now using only the last 4 digits of the changeset, so instead of 2.7.1.65559 we are using the version 2.7.1.5559
this required a small change to the Nant build script
this version constraint is documented here
After a quick Google search it turns out that each segment in a .net assembly cannot be larger then 65534. We use the TFS changeset for the revision segment but this will no longer work for us as we are now beyond changeset 65534 - doh! As a work around we are now using only the last 4 digits of the changeset, so instead of 2.7.1.65559 we are using the version 2.7.1.5559
this required a small change to the Nant build script
this version constraint is documented here