VS2015 添加DNX SDK

第一次运行VS2015,添加第一个ASP.NET 5程序时会报一个错误“DNX SDK版本 “dnx-clr-win-x86.1.0.0-beta5”无法安装。

解决办法:

打开CMD :输入  

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

然后再输入

dnvm upgrade

我看见其他人说还要配置环境变量,微软官方没说要配置,执行以上CMD代码就行。

参考:https://github.com/aspnet/home

 
原文地址:https://www.cnblogs.com/ghw0501/p/4765764.html