System.Net.Http is missing after upgrading Visual Studio to 15.5

We have an existing solution, consisting of an ASP.NET MVC project and many libraries, all projects are aimed at .NET 4.6.1 .

After upgrading Visual Studio from 15.3 to 15.5, I get several compilation errors stating that I cannot find the System.Net.Http assembly.

The type "HttpResponseMessage" is defined in an assembly that is not referenced. You must add a reference to the assembly "System.Net.Http, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a".

I read the release notes , but I could not find anything that could cause this problem. Why do these errors occur when upgrading from Visual Studio 15.3 to 15.5?

+5
source share
2 answers

Try updating Nortet System.Net.Http to make sure you have the latest version.

0
source

I think your problem is related to what is written here https://developercommunity.visualstudio.com/content/problem/160241/errors-reported-when-none-exist.html , because it seems that this is all about links to projects. See if there is a suggested solution

Uncheck "Allow concurrent project initialization"

also helps you.

By the way, it is worth mentioning that the updated 15.5 clearly caused other serious problems for existing projects, as it is written here https://developercommunity.visualstudio.com/content/problem/160609/vb-option-strict-on-warnings-are-shown- on-existing.html

I hope all this helps to solve your problem, or at least to investigate it more deeply.

0
source

Source: https://habr.com/ru/post/1273908/


All Articles