To avoid the problem described here:
Failed to load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib
I am trying to create my project for targeting .net 4.0 instead of 4.5 (in Visual Studio 2013), but I am getting the following errors:
The type or namespace name 'Newtonsoft' could not be found (are you missing the using directive or assembly reference?)
The main link "Newtonsoft.Json" cannot be resolved because it was created against the framework ".NETFramework, Version = v4.5". This is a higher version than the current target environment is ".NETFramework, Version = v4.0".
So, I would like to install a version of json.net compatible with .net 4.0. I see that the downloaded NuGet package contains the lib / 4.0 directory in addition to lib / 4.5, but I cannot figure out how to get the package manager to use this instead of version 4.5.
How can I get a design solution for buikd using a version of json.net that is compatible with .net 4.0, and not one that works only with .net 4.5?
Jake
source share