Install ASP. NET 5 and windowsasp.net on windows

Source: Internet
Author: User

Install ASP. NET 5 and windowsasp.net on windows

This article describes how to install ASP. NET5 on windows, including installing ASP. NET5 separately and using Visual Studio 2015.

In this article:

  • Install ASP. NET through Visual Studio
  • Install ASP. NET separately
Install ASP. NET through Visual Studio

The simplest way to start creating an ASP. NET5 application is to install the latest version of Visal Studio 2015 (including obtaining community versions for free ). Visual Studio is an integrated development environment (IDE), which means that it is not only an editor, but also includes many tools required to create an application, such as ASP.. NET 5 web applications. When installing Visual Studio 2015, make sure that Microsoft Web Developer Tools is installed.

 

Once Visual Studio has been installed, ASP. NET 5 is also installed. You can start to create your first ASP. NET application.

Install ASP. NET separately

Visual Studio is not the only way to install ASP. NET. In some cases, installing IDE may not be appropriate. You can also install ASP. NET at your own command prompt. This involves several steps, because we need to install and configure the ASP. NET runtime Environment, called. NET Execution Environment (DNX ). Before installing NDX, we need a tool:. NET Version Manager (DNVM ).

Install. NET Version Manager (DNVM)

. NET Version Manager is used to install one or more. NET runtime environment versions to manage which Version is currently activated. To install DNVM on windows, open the command prompt box (CMD) as an administrator and run the following PowerShell script:

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

Or start PowerShell to run the following script:

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

After the above script is run, open a new command prompt box and type DNVM to confirm that DNVM is working properly. If the DNVM configuration is correct, you should see the following results:

 

Install. NET Execution Environment (DNX)

Install the latest DNX version through DNVM and run: dnvm upgrade

This command will download the latest version of DNX to your user configuration file for use.

After the preceding command is completed correctly, type dnx to confirm that the DNX configuration is correct.

 

Now that DNX has been installed, you can start using ASP. NET 5!

Summary

Installing ASP. NET 5 in windows is simple, either independently or as part of Visual Studio 2015. Once the installation is complete, you can start creating your first ASP. NET application.

 

Address: http://docs.asp.net/en/latest/getting-started/installing-on-windows.html

Related Article

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.