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