2015-08-09 95 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是在九月一号左右发布的。你现在可以尝试在同一链接上的指示吗?

相关问题