Could not load file or assembly “System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”

后端 未结 15 1576
滥情空心
滥情空心 2020-11-28 18:31

I\'ve copied my project to a clean Windows 10 machine with only Visual Studio 2015 Community and SQL Server 2016 Express installed. There are no other framework versions ins

15条回答
  •  臣服心动
    2020-11-28 18:52

    This will work in .NET 4.7.2 with Visual Studio 2017 (15.9.4):

    • Remove web/app.config binding redirects
    • Remove NuGet package for System.Net.Http
    • Open "Add New Reference" and directly link to the new 4.2.0.0 build that ships with .NET 4.7.2

提交回复
热议问题