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.0 MyProject -> SSH.NET/2016.1.0 -> System.Net.NameResolution/4.0.0
4.3.0 MyProject -> Rebex.Elliptic.Ed25519/1.2.1 -> NETStandard.Library/1.6.1 -> runtime.win.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?