c# - Not able to add System.Net.Http to Project updated to 4.6.1 -
i updated mvc project .net 4.6 .net 4.6.1. when start application, there error, system.net.http missing.
in add reference dialog can see reference:
but in list, there icon, indicating warning:
i tried remove , add reference again several times no luck. tried new mvc project based on .net 4.6.1 , here works charm.
so can do, reference system.net.http in existing project?
first go csproj file, check if version same packages.config ? if yes check in bin folder same version, of them should same version, if not remove line, , go packages.config , search library , remove line again. add library again.
first image csproj file line
as mentioned check 3 have same version, , no duplicate, if not remove , add again , check dll in bin folder generated or not. hope help.
Comments
Post a Comment