I am using NuPack (https://www.nuget.org/packages/NuPack/) to create a Nuget automatically on build but when I go to upload my Nuget file, it gives me this error:
Invalid package version for a dependency with id 'Newtonsoft.Json' in package 'Float.1.0.0': ''.
I am not familiar with NuPack, but usually you'd have a a nuspec and need to specify the version of your dependency:
https://learn.microsoft.com/en-us/nuget/schema/nuspec#dependencies
Look for your Newtonsoft.Json entry and provide a version following these guidelines:
https://learn.microsoft.com/en-us/nuget/reference/package-versioning#version-ranges-and-wildcards
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With