2015-08-09 92 views
0

我已經安裝了dnvm,coreclr coreclr應用,指示在我的Mac:如何構建具有DNX

http://docs.asp.net/en/latest/getting-started/installing-on-mac.html

,如果我通話清單

peteisace$: dnvm list 

Active Version    Runtime Arch OperatingSystem Alias 
------ -------    ------- ---- --------------- ----- 
     1.0.0-beta6   mono   linux/darwin  
    * 1.0.0-beta7-12302 coreclr x64 darwin   
     1.0.0-beta7-12302 mono   linux/darwin default 

所以它似乎dnxcore50安裝...

但是,如果我嘗試恢復,建立,運行,沒有任何反應,當在coreclr;它跟擊中輸入一樣。沒有嘗試做任何事情:

peteisace$ dnu restore 
peteisace$ 

相同的,如果我嘗試建立/運行/不管命令有:

peteisace$ dnx . run 
peteisace$ 

所以如果我嘗試使用單聲道到建立自己的應用程序:

peteisace$ dnvm use 1.0.0-beta7-12302 -r mono 
peteisace$ System.InvalidOperationException: The current runtime target framework is not compatible with 'sampleConsole'. 

Current runtime target framework: 'DNX,Version=v4.5.1 (dnx451)' 
Version:  1.0.0-beta7-12302 
Type:   Mono 
Architecture: x64 
OS Name:  Darwin 

任何建議將受到歡迎。我不知道如何驗證coreclr是否正確安裝。運行時目錄已填充:

$peteisace ls -l ~/.dnx/runtimes/dnx-coreclr-darwin-x64.1.0.0-beta7-12302/ 
/Users/peteisace/.dnx/runtimes/dnx-coreclr-darwin-x64.1.0.0-beta7-12302/: 
total 8 
drwxr-xr-x 108 peteisace peteisace 3672 Aug 4 09:29 bin 
-rw-r--r-- 1 peteisace peteisace 725 Aug 4 09:55 dnx-coreclr-darwin-x64.nuspec 
drwxr-xr-x 3 peteisace peteisace 102 Aug 4 09:29 package 
+0

完全相同的場景。我使用http://dotnet.github.io/core/getting-started/中的示例代碼。如果我做DNF。當運行在單指出,它執行,無需建第一,但像你一樣在coreclr指出沒有任何反應。 – mlusby

回答

0

您正在執行正確的命令。 Darwin/Linux CoreCLR上的dnx仍然非常破碎。

當你遇到使用最新的DNX建立錯誤,你可以通過在他們的GitHub庫提交的問題有更多的運氣深入到DNX隊。

DNX on GitHub

0

DNX上CoreCLR應該是在同β7更好的開端。這個問題是從八月份開始的,beta 7是在九月一號左右發佈的。你現在可以嘗試在同一鏈接上的指示嗎?

相關問題