Can't include Newtonsoft JSON in CSharpCodeProvider script
问题 I am trying to use JSON in a dynamically compiled script. However, when I include the library and add a JObject, I get errors like: "The type 'System.Dynamic.IDynamicMetaObjectProvider' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'." I included MathNet.Numerics just fine. Here is my setup. Console application .NET Framework 4 (so it matches the runtime compile) Nuget