Search code examples
c#clearscript

Attempting to create V8ScriptEngine instance fails with IExpando error


I am trying to create an instance of V8ScriptEngine but am getting an exception as below:

using Microsoft.ClearScript.V8;
V8ScriptEngine engine = new V8ScriptEngine();

Exception: "Could not load type 'System.Runtime.InteropServices.Expando.IExpando' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'."

What am I missing? This is ClearScript version 5.4


Solution

  • For .NET Core support, you need ClearScript 6.0 (or higher).