V8.NET(v8dotnet)mono
问题描述:
希望有人有一点时间来解释如何在Mono上使用V8.Net。 我想在我的ubuntu机器上使用V8.Net单声道3.10。到目前为止,我做了以下内容:V8.NET(v8dotnet)mono
-
与CodePlex上
using System; using V8.Net; namespace testv8 { class MainClass { public static void Main (string[] args) { var v8Engine = new V8Engine(); Handle result = v8Engine.Execute("/* Some JavaScript Code Here*/","My V8.NET Console"); Console.WriteLine(result.AsString); // (or "(string)result") Console.WriteLine("Press any key to continue ..."); Console.ReadKey(); Console.WriteLine ("Hello World!"); } } }
内容创建一个示例项目添加V8.Net.dll和V8.NetSharedTypes到引用
我将文件夹/ Release/NET 4.0/x64的内容复制到我的生成目录的/ bin/Debug/x64
当我尝试运行该示例时,他下面的错误:抛出了system.DllNotFoundException。
我将Build类型从Debug更改为(Debug | Any cpu)。如果我understood正确的图书馆现在应该选择正确的DLL。
6当我在这种模式下重新运行程序。 程序停止在: 加载组件:/Build/v8dotnet/testv8/testv8/bin/test/x64/V8.Net.Proxy.Interface.x64.dll [外部]
调用堆栈显示: V8 .Net.V8NetProxy.CreatehandleProxyTest()。
希望你可以给我一些输入来让它运行。
答
简短说明:在使用Mono为不同平台(Win,Linux和Mac)提供V8.Net方面取得了一些进展。 更多信息可从以下网站:
Mono Github Branch
V8.Net Mono Issues