Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Nuget package version parse failed
-
Hi,
I am trying to push a nuget package to proget and I get the following error:
An error occurred processing a PUT request to http://10.255.11.19:81/nuget/Default/: Invalid version number. System.FormatException: Invalid version number. at Inedo.ProGet.Feeds.NuGet.LegacyNuGetVersion.Parse(String version) at Inedo.ProGet.Feeds.NuGet.NuGetPackage.ReadFromNuspecFile(Stream nuspecStream, Boolean legacyVersion) at Inedo.ProGet.Feeds.NuGet.NuGetFeed.ParsePackage(Stream stream) at Inedo.ProGet.Feeds.NuGet.NuGetFeed.<InstallOrUpdatePackageAsync>d__46.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Inedo.ProGet.WebApplication.FeedEndpoints.NuGet.NuGetApi.PutHandler.<ProcessPutRequestAsync>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Inedo.ProGet.WebApplication.FeedEndpoints.NuGet.NuGetApi.<ProcessRequestAsync>d__3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()The version that I try to push is:
0.1.0-20180221T113336.28ecd3c.0
Which is a valid semantic versioned version, at least to my understanding.The Proget version I use is:
5.0.8 (Build 5)Am I doing something wrong, or do I hit a bug in Proget?
Cheers,
AndréProduct: BuildMaster
Version: 6.0.0 -
Hello Andre,
The version number you posted is indeed a valid SemVer2 version number.
If you go to the Manage Feed page for the NuGet feed, is there an orange button near the top of the page that says
Migrate? If that button is present, the feed is not marked as supporting SemVer2.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đŸ’—
Register Login