Orchard Build Breaking on VS 2013 Update 2 RS due to NewtonSoft.json.dll

Topics: General
Apr 22, 2014 at 7:01 PM
The primary reference "System.Web.Http.WebHost" could not be resolved because it has an indirect dependency on the assembly "Newtonsoft.Json, Version=", ... which was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0". Orchard.Framework

This is a pattern beyond Orchard as shown at: http://connect.microsoft.com/VisualStudio/feedback/details/855978/reference-issues-after-upgrade-to-visual-studio-2013-update-2-rc#tabs

This is with an Orchard 1.6 project. FYI
  • Mike Cullina
May 6, 2014 at 11:37 PM
Marked as answer by mcullina on 5/6/2014 at 6:56 PM
May 7, 2014 at 1:55 AM
Thanks Sebastien,

This did the trick. I just removed Newtonsoft.Json.dll file from Program Files\Microsoft SDKs\Windows Azure.NET SDK\v2.3\ref\ folder.

I also could have uninstalled. Windows Azure VS Tools v 2.3. It had a bug that caused this side effect. It has been fixed going forward for Azure VS Tools v 2.3.
  • Mike Cullina