I've a console application targeting .NET 4.6 with a dependency on the NuGet package System.Net.Http v2.0.20126.16343. Everything was working just fine until I decided to upgrade my Visual Studio installation to 15.7.1 (27703.2000) from 15.2 (26430.14) because of the notifications.
Post upgrade, my application fails to build and I get a missing reference on System.Net.Http even though the package exists. If I remove and add the package again, Visual Studio references the library from GAC and not the packages folder.
The only way I can get my application to build successfully if I upgrade the System.Net.Http package to v4.3.3 but I'll not be able to upgrade any NuGet packages now due to constraints beyond my control. I will also be not able to uninstall Visual Studio and go back to v15.2 again due to external constraints.
Is there any way that I can fix this and stay on v2.0.20126 of System.Net.Http while using VS 15.7.1?
Appreciate your help!