2016-02-12 90 views
1

首先我安裝了最新的Edge Nuget Package。然後我運行的基本的Hello World例子開始,並已運行到這個錯誤在Windows2010瓦特/的Visual Studio 2015年從C#調用Edge.js時DLL錯誤#

enter image description here

當我在OS-X執行相同的hello world代碼中,我得到這個錯誤。

enter image description here

這裏是出了當地人變樹的休息。看起來這個錯誤可能是相似的。

enter image description here

的代碼看起來是這樣的。它從字面上複製從README.md of the repo

using System; 
using System.Threading.Tasks; 
using EdgeJs; 

class Program 
{ 
    public static async void Start() 
    { 
     var func = Edge.Func(@" 
      return function (data, callback) { 
       callback(null, 'Node.js welcomes ' + data); 
      } 
     "); 

     Console.WriteLine(await func(".NET")); 
     Console.ReadKey(); 
    } 

    static void Main(string[] args) 
    { 
     Task.Run((Action)Start).Wait(); 
    } 
} 

回答

0

當您從nuget安裝Edgejs時,它會在解決方案中創建邊緣文件夾。 Node.dll應該位於您的x64 & x86文件夾中。

+0

你是說它可能不在那裏?不知道採取什麼行動。 :-( – Adron

+0

嘗試重新安裝軟件包或從他們的github頁面自己構建它。 – monkeyjumps