安装最新的 DNVM
Installing the latest DNVM
我目前安装了 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
之后,我发现我仍然使用相同的版本。
beta6刚出来还有tooling updates that will install the new version of dnvm
我认为使用它是最简单的解决方案
我刚刚从 C:\Users\{{user}}
中删除了整个 .dnx
文件夹,然后重新运行安装命令。它显然无法 "overwrite".
我目前安装了 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
之后,我发现我仍然使用相同的版本。
beta6刚出来还有tooling updates that will install the new version of dnvm
我认为使用它是最简单的解决方案
我刚刚从 C:\Users\{{user}}
中删除了整个 .dnx
文件夹,然后重新运行安装命令。它显然无法 "overwrite".