qbo.Application Uses Newtonsoft.JSON NuGet Package

posted Sep 1, 2016, 12:02 PM by Eric Patrick   [ updated Sep 6, 2016, 11:59 AM ]
The qbo.Application project has been updated to reference Newtonsoft.JSON version, from NuGet. This is the first NuGet package used in qbo.Core (though many plugins already use them). 

If you have not used NuGet before, you will refresh NuGet packages by:
  • Right-clicking on the solution file (e.g. qbo.Core), and
  • Choosing "Restore NuGet Packages"
For example, the first time you attempt to build qbo.Application without the Newtonsoft.JSON package installed, you will get something like:

Error CS0246 The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?) qbo.Application F:\Projects\qbo3\qbo.Core\Application Tier\qbo.Application\Configuration\Credential.cs 

Note that the following should be added to the root configuration element of web.config until all references to Newtonsoft.JSON are updated to 9.0:

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="" newVersion=""/>

See the post on Training Guide for Developers with respect to managing NuGet packages.