Reputation: 31
Local NuGet repositories configured in Artifactory have an option "max unique snapshots". However, the snapshot notion does not really exist in NuGet. So what effect does this configuration have?
Upvotes: 3
Views: 253
Reputation: 1323823
However, the snapshot notion does not really exist in NuGet.
It kind of does, with the notion of pre-release.
Pre-release versions are then denoted by appending a hyphen and a string after the patch number.
Technically speaking, you can use *any *string after the hyphen and NuGet will treat the package as pre-release. NuGet then displays the full version number in the applicable UI, leaving consumers to interpret the meaning for themselves.
Snapshots are also mentioned in NuGet issue 1891 and issue 2544, but Artifactory might simply keep only the last "max snapshots" pre-releases for any given x.y.z version.
Upvotes: 2