michael
michael

Reputation: 15282

What is the SpecialVersion in a NuGet package version?

When looking over the source code of NuGet.Core, I noticed that SemanticVersion has a constructor public SemanticVersion(Version version, string specialVersion)...

What exactly is this specialVersion? Can anyone give an example of how it looks on a real NuGet package?

Upvotes: 0

Views: 166

Answers (1)

Matt Ward
Matt Ward

Reputation: 47937

Special version is used with pre-release NuGet packages where part of the version number includes an arbitrary string.

So if you have a pre-release package with the version:

   1.1.2-beta1

The special version will be beta1.

Upvotes: 2

Related Questions