Javascript – Use V8ScriptEngine in C# to re-run script multiple times with different parameters
I have big JavaScript-library that I want to use within my C#-project and it works like a charm using the Microsoft.ClearScript.V8-nuget and the following code: public int InvokeJavascript(int parameter) { string libraryCode = System.IO.File.ReadAllText("library.js"); string libraryInvokeCode = $"inoke({parameter})"; string javascriptCode…