Hi, I created my own node library and I am able to add my new test node to a patch just fine. However, as soon as I add a reference to Newtonsoft.Json, I get an error that it cannot be found when I try to install my blibrary. Is there anything that I need to do to include a reference like this in my library?
I’m using “dotnet pack” to create my nuget.
My .csproj file has a reference like this in it like this …
I think newtonsoft json is already included in vvvv core, likely you are trying to reference library that already referenced, but with another version…
I’m not seeing it there, this happens to other packages though too like AutoMapper.
I’m wondering now if I need to publish my lib to a feed first before I can use “nuget install”.
Looking up how to do that locally.
–Andy
In the past I had a lot of incompatibility issues with Newtonsoft.Json (mainly because every nuget and its grandma used a different version)
Since then I have come to appreciate System.Text.Json a lot, it has become my go-to lib for every custom serialisation I do.
It seems you’re using the powershell commandlet. Can you try using the nuget.exe?
The syntax should be nuget install Weston.LibTest -version 1.0.0 -source C:\Users\awest\source\repos\Weston.VL\...\bin\Debug -source nuget.org -nocache
The -nocache can be useful if you re-package without increasing the version.