why my nuget package triggers dependency dll downgrade when install?

120 Views Asked by At

I have a nuget package that consumed by internal teams. This is the dependency section in the nuspec file

<dependencies>
  <dependency id="Microsoft.IdentityModel.Clients.ActiveDirectory" version="5.2.9" />
  <dependency id="Newtonsoft.Json" version="12.0.2" />
  <dependency id="System.Runtime.Caching" version="4.5.0" />
  <dependency id="Polly" version="7.1.0" />
</dependencies>

When some teams installed my nuget package, they complained that some dlls were downgraded. For example: enter image description here

and enter image description here

Yes, the code does use newton. However, in my dependency section, I didn't hard code the exact version and from visual studio, it shows this and I think newton json version 13 should be bigger than 12.0.2? enter image description here Then for System.Memory, I didn't include that as a dependency, so how come its version got degraded?

0

There are 0 best solutions below