Taritsyn/JavaScriptEngineSwitcher

deprecated?

StefH opened this issue · 4 comments

StefH commented

You indicated that this JavaScriptEngineSwitcher.V8.*** is deprecated?

Can you show the replacement when using Microsoft.Clearscript for this code:

JsEngineSwitcher.Current.DefaultEngineName = V8JsEngine.EngineName;
JsEngineSwitcher.Current.EngineFactories.AddV8();

Hello, Stef!

You need to replace NuGet packages as follows:

In other words, uninstall the JavaScriptEngineSwitcher.V8.Native.* packages and install the Microsoft.ClearScript.V8.Native.* packages instead.

StefH commented

When I just remove the NuGets and replace these by the Microsoft.ClearScript, I get build error:

image

You must have at least 3 packages installed:

  • JavaScriptEngineSwitcher.Core
  • JavaScriptEngineSwitcher.V8
  • Microsoft.ClearScript.V8.Native.win-x64
StefH commented

Thank you.