0

我已经按照我的 Mac 上的说明安装了 dnvm、coreclr:

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 上什么也不会发生;它与按 Enter 相同。不尝试做任何事情:

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
4

2 回答 2

0

您正在执行正确的命令。Darwin/Linux CoreCLR 上的 dnx 仍然很糟糕。

当您使用最新的 dnx 构建遇到错误时,您可能会更幸运地联系 dnx 团队,方法是在他们的 GitHub 存储库上提交问题。

GitHub 上的 DNX

于 2015-08-11T23:44:21.573 回答
0

从 beta7 开始,CoreCLR 上的 DNX 应该会更好。问题是从 8 月开始的,beta 7 是在 9 月 1 日左右发布的。您现在可以尝试同一链接上的说明吗?

于 2015-09-18T13:22:13.520 回答