Github Nuget package dependencies

I’m struggling to get my Nuget depedencies to work as expected in Github packages. In Visual Studio Nuget Package Manager my nuget package always displays “No dependencies”.

However my nuspec has the following defined:

      <group targetFramework=".NETFramework4.6.1">
        <dependency id="Newtonsoft.Json" version="12.0.3" exclude="Build,Analyzers" />

And if I view my package using Nuget Package Explorer, or download locally to an offline nuget source, I correctly see my dependencies.

Has anyone got a working example so I can see if it’s just me doing something wrong?

Just me then?

Hi @robturnerovo,

Thanks for letting us know about this. There does appear to be code to handle returning a Project URL, but it doesn’t appear to be working. I’ve added your feedback to internal issue about this and hopefully it will be fixed soon.

There is a PR in progress to fix the missing Dependencies information. This doesn’t impact restoring packages, only how they’re displayed inside Visual Studio.