DNX SDK Version "Dnx-clr-win-x86.1.0.0-beta5" cannot be installed

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.