Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid package version for a dependency

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': ''.

  1. What is the error telling me?
  2. How do I fix the issue?
like image 610
GBreen12 Avatar asked Apr 08 '26 12:04

GBreen12


1 Answers

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

like image 180
AaronLS Avatar answered Apr 10 '26 02:04

AaronLS



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!