我已经使用此处https://github.com/aspnet/home
给出的命令成功安装了dnvm。
现在,我正在尝试dnvm upgrade
,但是某种程度上它对我不起作用。我从nuget获得了最新版本,并且可以看到它正在创建到我的.dnx\runtimes
文件夹中。请参阅以下内容:
C:\Users\Administrator>dnvm upgrade
Determining latest version
Downloading dnx-clr-win-x86.1.0.0-beta4 from https://www.nuget.org/api/v2
Installing to C:\Users\Administrator\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta4
Adding C:\Users\Administrator\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta4\bin to process PATH
Adding C:\Users\Administrator\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta4\bin to user PATH
Updating alias 'default' to 'dnx-clr-win-x86.1.0.0-beta4'
C:\Users\Administrator>dnu
C:\Users\Administrator>
C:\Users\Administrator>dnx
C:\Users\Administrator>
C:\Users\Administrator>dnvm list
Active Version Runtime Architecture Location Alias
------ ------- ------- ------------ -------- -----
* 1.0.0-beta4 clr x86 C:\Users\Administrator\.dnx\runtimes default
dnvm upgrade
可以吗?但是当我键入dnu
,dnx
,dnu restore
命令时没有任何反应。我缺少什么?我正在Windows Server 2008 R2中执行此操作。已安装.Net Framework 4.5.2。更新资料
我只是想获得最新的不稳定运行时。使用
beta6-12085
时,dnu
命令返回错误:dnx.win32.dll could not be loaded. Last error: 87
C:\Users\Administrator>dnvm upgrade -u
Determining latest version
Downloading dnx-clr-win-x86.1.0.0-beta6-12085 from https://www.myget.org/F/aspnetvnext/api/v2
Installing to C:\Users\Administrator\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta6-12085
Adding C:\Users\Administrator\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta6-12085\bin to process PATH
Adding C:\Users\Administrator\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta6-12085\bin to user PATH
Updating alias 'default' to 'dnx-clr-win-x86.1.0.0-beta6-12085'
C:\Users\Administrator>dnu
dnx.win32.dll could not be loaded. Last error: 87
最佳答案
我重新安装了Windows Server2008。安装所有更新均解决了该问题!
关于asp.net-core - ASP.NET 5 DNX和DNU在Windows Server 2008 R2中不起作用,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/30905470/