Taritsyn / JavaScriptEngineSwitcher

JavaScript Engine Switcher determines unified interface for access to the basic features of popular JavaScript engines. This library allows you to quickly and easily switch to using of another JavaScript engine.
Apache License 2.0
439 stars 49 forks source link

deprecated? #111

Closed StefH closed 1 year ago

StefH commented 1 year ago

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();
Taritsyn commented 1 year ago

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 1 year ago

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

image

Taritsyn commented 1 year ago

You must have at least 3 packages installed:

StefH commented 1 year ago

Thank you.