0

我目前安装了 DNVM v1.0.0-beta4-10356,但dnvm update-self此版本中没有可用的命令。

如何安装最新的可用 DNVM?

我已经尝试将此命令作为ASP.NET 5 GitHub 页面

&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}

它执行以下操作:

Using temporary directory: C:\Users\Dave\AppData\Local\Temp\dnvminstall
Downloading DNVM.ps1 to C:\Users\Dave\AppData\Local\Temp\dnvminstall\dnvm.ps1
Downloading DNVM.cmd to C:\Users\Dave\AppData\Local\Temp\dnvminstall\dnvm.cmd
Installing DNVM
Installing .NET Version Manager to C:\Users\Dave\.dnx\bin
Installing 'dnvm.ps1' to 'C:\Users\Dave\.dnx\bin' ...
  Skipping: file already exists
Installing 'dnvm.cmd' to 'C:\Users\Dave\.dnx\bin' ...
  Skipping: file already exists
Adding C:\Users\Dave\.dnx\bin to Process PATH
Adding C:\Users\Dave\.dnx\bin to User PATH
Adding C:\Users\Dave\.dnx to Process DNX_HOME
Adding C:\Users\Dave\.dnx to User DNX_HOME

但是在运行时dnvm help,我发现我仍然使用相同的版本。

4

2 回答 2

1

我刚刚删除了整个.dnx文件夹C:\Users\{{user}}并重新运行了安装命令。它显然无法“覆盖”。

于 2015-07-31T06:54:52.190 回答
0

beta6 刚出来,有工具更新会安装新版本的 dnvm

使用这将是我认为最简单的解决方案

于 2015-07-29T18:32:11.673 回答