开发者

Is it safe to set parts of a NuGet package version number to greater than 65535?

NuGet 1.4 is allowing packages to be created w开发者_运维百科ith part of the version number greater than 65535 (i.e. 1.0.0.1000000)

Are there any technical reasons to avoid using large numbers for parts of the package version?


Though unusual, I don't see a technical issue not to do this. NuGet uses System.Version for its versions, and that uses ints for the 4 numbers, so I'd say anything up to Int32.MaxValue is usable.

SemVer also just states that the values are integers, so I don't think those high numbers violate that (though technically, using 4 numbers is not correct for SemVer, but that's orthogonal).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜