Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Error Updating View After Publishing Nuget Package Via API

$
0
0

We recently found several release pipelines that were using a deprecated version of the nuget API to update the View on a published nuget package (Setting Prerelease / Release on the package). After updating the web service calls to be compliant with the 5.1 api we are getting the following error when calling this web service to set attributes on a published package

Web Service:

https://pkgs.dev.azure.com/<org_name>/_apis/packaging/feeds/<feed_name>/upack/packages/<package_name>/versions/2.0.20126.03?api-version=5.1-preview.1

Error:

The package version provided is invalid. Universal package versions must be lowercase SemVer 2.0 versions without build metadata. The package version must be under 128 characters, and major/minor/patch must each be less than or equal to 2147483647

I am new to SemVer and publishing Nuget packages, any idea how to go about resolving the issue? The artifact publishes with the version number as above 2.0.20126.03


Viewing all articles
Browse latest Browse all 3067

Trending Articles



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