Missing ClearScriptV8-64.dll, v8-ia32.dll, v8-x64.dll in C # ConsoleApp

I want to run a simple firmware program. To do this, I created a new ConsoleProject and added the link via nuget.

When creating the engine (first line of code)

  using (var engine = new V8ScriptEngine()) 

I get

Error System.TypeLoadException was not handled _HResult = -2146233054
_message = Unable to load V8 interface assembly; make sure that the following files are installed in your application: ClearScriptV8-32.dll, ClearScriptV8-64.dll, v8-ia32.dll, v8-x64.dll

I just found dlls: v8-ia32.dll, v8-x64.dll, but not any ClearscriptV8 - *. dll

I copied them to the compilation output, but this did not change when running console.exe

I also downloaded the Package from Github and it doesn't include any such DLLs. I have only the file ClearScript.dll.

Running an included console project causes the same error.

Where do I get these dlls? What am I missing?

My project output folder looks like this: enter image description here

I also ran the V8 update team. He succeeded, but nothing has changed enter image description here

Then I also installed C ++ Redistribueable as described here: Clearars files cannot be found on the host

+4
source share
3 answers

The solution is to use the installer

+1
source

As suggested, the installer is one way to help solve this problem.

Nuget, . .

Install-Package ClearScript.V8 

https://www.nuget.org/packages/ClearScript.V8/

+1

, Nuget , - (.. ). , script install.ps1 script PostBuildCmd.ps1 post-build-command. ( , !)

- ..\packages\ClearScript.V8.5.4.7\tools\native bin . , , , : Clearscript (.. DLL).

<remove ...

( ) web.config, .

0

All Articles