Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

project.assets.json file references 2 different versions of a package for the same framework

$
0
0

I have a project that is multi-targeted net472 & net6.0-windows. For net6.0-windows there is a transient package reference with 2 different versions.

4.0.0MyProject -> SSH.NET/2016.1.0 -> System.Net.NameResolution/4.0.0

4.3.0MyProject -> Rebex.Elliptic.Ed25519/1.2.1 -> NETStandard.Library/1.6.1 -> System.Net.Sockets/4.3.0 -> System.Net.NameResolution/4.3.0

Now project.assets.json states all the target frameworks and it's dependencies. But for this project it states 2 different versions for the same framework.

"targets": {".NETFramework,Version=v4.7.2": { //not relevant },".NETFramework,Version=v4.7.2/win7-x64": { //not relevant },"net6.0-windows7.0": {          System.Net.NameResolution/4.0.0      },"net6.0-windows7.0/win7-x64": {          System.Net.NameResolution/4.3.0      }

In our team we have some custom build tools, that ran into this and failed, and I want to understand why did it happen, and why only for this project since we have multiple multi-targeted projects. How is this project.assets.json generated? Why did it state 2 different version for the same framework?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>