我正在尝试创建V8ScriptEngine的实例,但出现如下异常:
using Microsoft.ClearScript.V8;
V8ScriptEngine engine = new V8ScriptEngine();
例外:"Could not load type 'System.Runtime.InteropServices.Expando.IExpando' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'."
我想念的是什么?这是ClearScript版本5.4
对于.NET Core支持,您需要ClearScript 6.0(或更高版本)。