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

随声附和 提交于 2019-12-03 16:06:45

Solution is to use the installer

As suggested, the installer is one way to help resolve the situation.

Since there now exist a full Nuget Package, I will recommend to use that instead. It definitely made the whole install task so much easier.

Install-Package ClearScript.V8 

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

It's looking for the V8 32Bit version so make sure install this nuget package JavaScriptEngineSwitcher.V8.Native.win-x86. I was pulling my hair trying to figure out but this one definitely solved the issue for me.

Robert Gale

I found that the Nuget installer fails if you are applying it to a web-site (i.e. no project file). This is because the script in install.ps1 attempts to append the script in PostBuildCmd.ps1 to a non-existent post-build-command. (The installer declares success, but it's not to be trusted!)

The post-build-command in question simply copies everything from both folders in ..\packages\ClearScript.V8.5.4.7\tools\native, into the bin folder of the application. However, if you just do that manually, then you get another problem mentioned in: Clearscript files cannot be found on host (i.e. preemptive pre-loading of DLLs). You'll need to add the

<remove ...

lines (defined in the item at that link) to web.config as well as performing the manual copy.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!