希望有人有时间解释如何将V8.Net与Mono一起使用。我正在尝试在我的ubuntu机器上使用V8.Net和mono 3.10。到目前为止,我做了以下事情:
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!");
}
}
}
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
更新:不再支持Mono。现在支持.Net标准,这也是跨平台的。
NuGet:https://www.nuget.org/packages/V8.Net/
CodePlex现已关闭。新来源是:https://github.com/rjamesnw/v8dotnet