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();
Taritsyn commented
Hello, Stef!
You need to replace NuGet packages as follows:
- JavaScriptEngineSwitcher.V8.Native.win-x86 -> Microsoft.ClearScript.V8.Native.win-x86
- JavaScriptEngineSwitcher.V8.Native.win-x64 -> Microsoft.ClearScript.V8.Native.win-x64
- JavaScriptEngineSwitcher.V8.Native.linux-x64 -> Microsoft.ClearScript.V8.Native.linux-x64
- JavaScriptEngineSwitcher.V8.Native.osx-x64 -> Microsoft.ClearScript.V8.Native.osx-x64
In other words, uninstall the JavaScriptEngineSwitcher.V8.Native.* packages and install the Microsoft.ClearScript.V8.Native.* packages instead.
StefH commented
Taritsyn commented
You must have at least 3 packages installed:
- JavaScriptEngineSwitcher.Core
- JavaScriptEngineSwitcher.V8
- Microsoft.ClearScript.V8.Native.win-x64
StefH commented
Thank you.