Code Analysis error Could not load file or assembly 'System.Net.Http, Version=2.0.0.0 in MVC4 Web API

前端 未结 4 813
醉话见心
醉话见心 2020-12-13 06:42

this problem is exactly the same as this post http://forums.asp.net/t/1807797.aspx/1?System+Net+Http+is+not+found and this one on StackOverflow

I have all the latest

4条回答
  •  Happy的楠姐
    2020-12-13 07:22

    Try the following:

    1. Depending on your Visual Studio edition navigate to:
      • VS 2010:
        %ProgramFiles(x86)%\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop
      • VS 2012:
        %ProgramFiles(x86)%\Microsoft Visual Studio 11.0\Team Tools\Static Analysis Tools\FxCop
    2. Open FxCopCmd.exe.config and change AssemblyReferenceResolveMode from StrongName to StrongNameIgnoringVersion.
    3. Save the change and rebuild your project.

提交回复
热议问题