How to use PreRelease version of Nuget

Artifactory can be used to list and install PreRelease version of nuget packages if it meets the Semantic Versioning that nuget claims to follow (please see here for more details on using Prerelease with nuget).

For example, you may list prerelease version by adding -PreRelease as part of nuget list command 

nuget list -Source your-nuget-repo -PreRelease

You can verify if the nuget package is following the Semantic versioning by looking at “nuget.version” property from Artifactory GUI or by using Item properties API. For example:

curl http://192.168.99.100:8081/artifactory/api/storage/nuget-remote-cache/AngularJs.StarterKit.Spa.Secured.Client.2.0.3-alpha.nupkg?properties

{

  “properties” : {

    “nuget.authors” : [ “JayChase” ],

    “nuget.copyright” : [ “Copyright 2015 Useful Software Solutions Ltd” ],

    “nuget.dependency” : [ “WebActivatorEx”, “Newtonsoft.Json:6.0.8” ],

    “nuget.description” : [ “AngularJS starter kit Spa secured client” ],

    “nuget.digest” : [ “56nX0y8X/u1TgeaRHskUHUufE0PwKsh+wzV/zVufBQhAV0inFBgatM/R9fFdnWw5jWYBpwmcFT2KoRE0I6F0yA==” ],

    “nuget.id” : [ “AngularJs.StarterKit.Spa.Secured.Client” ],

    “nuget.licenseUrl” : [ “https://github.com/Useful-Software-Solutions-Ltd/Angular.Net.SecureStarter/blob/master/License.txt” ],

    “nuget.owners” : [ “JayChase” ],

    “nuget.projectUrl” : [ “https://github.com/Useful-Software-Solutions-Ltd/Angular.Net.SecureStarter” ],

    “nuget.releaseNotes” : [ “” ],

    “nuget.requireLicenseAcceptance” : [ “false” ],

    “nuget.summary” : [ “AngularJS starter kit Spa secured client” ],

    “nuget.tags” : [ “angularjs angular spa authentication OAuth OWIN “ASP.NET Identity”” ],

    “nuget.title” : [ “AngularJS starter kit Spa Secured client” ],

    “nuget.version” : [ “2.0.3-alpha” ]

  },

  “uri” : “http://192.168.99.100:8081/artifactory/api/storage/nuget-remote-cache/AngularJs.StarterKit.Spa.Secured.Client.2.0.3-alpha.nupkg