I have a web service project in .Net 4.6.1 let's call it Project X, which has 2 project references(both class libs), let's call them Project A and B.
A has this in packages.config:
<package id="NLog" version="4.5.3" targetFramework="net35" />
While X and B has this in their packages.config:
<package id="NLog" version="4.5.3" targetFramework="net461" />
Now when I ran this command in project X's solution:
Update-Package –reinstall nlog -ignoreDependencies
And further, I build X's solution, and then run X. Now i want to know will code flows in project X using project A or B work fine for any nlog based logging they have inside code of A or B?
If answering this will need more explanation then request to please share any reference link which will help me understand this kind of setup and nuget target resolution for client app referring dependencies with a different nuget target for given nuget package.
Thanks
Edit:
IMHO The suggested question as this being duplicate of is not valid as that talks about scenarios when solution has projects with different nuget versions, which is not my case.
As my question is about both projects having same nuget version but different targetFramework.
Like for A it is targetFramework="net35", while for B and X it is targetFramework="net461".
But all 3 projects A,B and X using same version i.e. 4.5.3. Sorry the config i had earlier given showed versions as different but that wasn't my intention to talk about hence have edited to make version same.
So question is again how a project referring 2/more projects dependencies each of those using same version but different targetFramework gets addressed during build/execution of client app i.e. X here.
Is it like X will have nuget dll with highest targetFramework picked up and copied to it's bin? if not what happens then?