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

后端 未结 13 1428
余生分开走
余生分开走 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:29

    Ok - found a work around myself, posting in case someone else gets caned by this MS bug. The problem is that you can't add a NuGet reference as it's already included in the packages by default. So...

    1. Open up packages.config
    2. Delete the Newtonsoft.Json entry.
    3. Save and Build
    4. Re-add Newtonsoft.Json from NuGet.
    5. Build and run

提交回复
热议问题