我目前安装了DNVM v1.0.0-beta4-10356,但此版本中没有dnvm update-self
命令。
如何安装最新的可用DNVM?
我已尝试将此命令作为ASP.NET 5 GitHub page:
&{$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
时,我发现我保持同一版本。
答案 0 :(得分:1)
我刚刚从.dnx
删除了整个C:\Users\{{user}}
文件夹,并重新安装了命令。它显然无法覆盖"。
答案 1 :(得分:0)
beta6刚出来,有tooling updates that will install the new version of dnvm
使用它将是我认为最简单的解决方案