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

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

    I was having the same FileNotFoundException and it turns out that I already have the reference to Newtonsoft.Json on my project, BUT the "Copy Local" property wasn't set to TRUE. Just set it to TRUE so the dll gets copied to the output directory if this is your case too.

    0 讨论(0)
提交回复
热议问题