尝试创建V8ScriptEngine实例失败,并出现IExpando错误

问题描述 投票:0回答: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

c# v8 clearscript
1个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.