Installed vs2015 want to try the legendary Asp.net5, the result of building a Web application encountered
DNXSDK version "Dnx-clr-win-x86.1.0.0-beta5" cannot be installed "error,
The solution is as follows
1, run cmd
@powershell-noprofile-executionpolicyunrestricted-command "&{$Branch = ' dev '; IEX (new-objectnet.webclient ). Downloadstring (' Https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1 ')}"
will be downloaded
When the download is complete, execute
c:\users\administrator\.dnx\runtimes\ Dnx-clr-win-x86.1.0.0-beta6\bin
Note that if there are other variables, the variable is added at the end, do not fall to the front;
After the above steps, create a new project, found still prompted to find Dnx-clr-win-x86.1.0.0-beta5 unable to install
changed Beta6 to Beta5, set up the project no longer error
But debug occurs
The current runtime target framework was not a compatible with ' WebApplication4 '.
Current runtime Target Framework: ' dnx,version=v4.5 (dnx45) '
Type:clr
Architecture:x86
version:1.0.0-beta6-12256
Please make sure the runtime matches a framework specified Inproject.json
Change the dnx45 in Project.json to dnx50, or you can use the following command to reinstall the DNX
DNVM Install 1.0.0-BETA5 This installs the specified version
Selecting the Web in debug will open a DOS window, ............... dnx.exe
Enter in the browser according to the hints inside
http://localhost:5000
The ASP.NET5 project interface will appear,
Therefore, this article, as long as you execute two red commands, you can successfully run ASP.NET5
DNX SDK Version "Dnx-clr-win-x86.1.0.0-beta5" cannot be installed