Quantcast
Channel: WE MOVED to github.com/nuget. This site is not monitored!
Viewing all articles
Browse latest Browse all 7612

New Post: switching version numbers from major.minor.build.revision to major.minor.patch

$
0
0
My suggestion is that nuget package version numbers should be independent of the assemblies'. For example, when I started to publish packages for the open source projects I manage,

http://nuget.org/profiles/lextm
  1. The assembly version number strictly follows Microsoft's approach on Visual Studio (as I use AssemblyInfo Task). The four-part format is meaningful for the developers to handle bug reports, but I think the last two parts are meaningless to the users. So for the nuget packages I only keep the first two parts the same as the assemblies.
  2. I noticed that sometimes I need to patch the nuget package alone (keep the binaries unchanged) because I missed something in the release notes, or I set a property wrongly, or I forgot to keep the framework hirarchy properly. In those cases I simply perform repackaging, and increase the fourth part (so get ..0.1). Well, in the future I might follow the SysVer recommendation to increase the third part.
But generally speaking, you have the freedom to use whatever way to manage the package version number, only if it does not break. :)

Viewing all articles
Browse latest Browse all 7612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>