1

我正在尝试创建 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 版

4

1 回答 1

2

对于 .NET Core 支持,您需要 ClearScript 6.0(或更高版本)。

于 2020-02-21T12:33:40.900 回答