V8。 Ne T(v8 do t)

问题描述 投票:1回答:1

希望有人有时间解释如何将V8.Net与Mono一起使用。我正在尝试在我的ubuntu机器上使用V8.Net和mono 3.10。到目前为止,我做了以下事情:

  1. 使用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!"); } } }
  2. 将V8.Net.dll和V8.NetSharedTypes添加到引用
  3. 我将文件夹/ Release / NET 4.0 / x64的内容复制到我的构建目录的/ bin / Debug / x64
  4. 当我尝试运行该示例时,我收到以下错误:抛出了system.DllNotFoundException。
  5. 我将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()。

希望你可以给我一些输入来让它运行。

c# mono v8 embedded-v8 v8.net
1个回答
0
投票

简短说明:在使用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

© www.soinside.com 2019 - 2024. All rights reserved.