Visual Studio 2012 Web API project won't run - can't find Newtonsoft.Json

后端 未结 13 1447
余生分开走
余生分开走 2020-12-02 09:56

After running a clean solution and rebuild, my MVC 4 Web API project stops working. It\'s can\'t find Newtonsoft.Json.

I know that MS is using this as the default JS

13条回答
  •  鱼传尺愫
    2020-12-02 10:14

    You could try to install the SocialAuth.Net package with the ‑IgnoreDependencies flag, then installing the dependencies manually and making sure that you only install the latest version of Json.Net library.

    Then at runtime the SocialAuth.Net package would respect the assembly redirect and load Json.Net (v4.5) instead of the old version.

提交回复
热议问题