Install/Configure ASP.NET 5 Environment (DNX, DNVM)

To Install ASP.NET on its own (from a command prompt), we’ll need to first install and configure the environment in which ASP.NET runs, also known as .NET Execution Environment (DNX).  In addition, to setup the DNX we would another tool referred as .NET Version Manager (DNVM), which is used for installing and configuring different versions of the .NET Execution Environment (DNX), depending on whether we need the full .Net Framework or just .Net Core

As a first step, to install DNVM:

  1. Open a new command prompt
  2. Run the below command:

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString(''))}"

Now type “dnvm” in the command prompt and you should see something like the below:



As a next step:

To install DNX for .NET Core run:

         dnvm upgrade -r coreclr

To install DNX for the full .NET Framework run:

         dnvm upgrade -r clr


1,174 total views, 2 views today

DNX SDK version ‘dnx-clr-win-x86.1.0.0-beta5’ failed to install. Error when creating a new ASP.NET 5 in VS 2015

After you install VS 2015, when you try to create a new project, on certain machines/desktops you get the below error:

DNX SDK version ‘dnx-clr-win-x86.1.0.0-beta5’ failed to install. The solution will use DNX SDK version ‘dnx-clr-win-x86-1.0.0-beta5’ for this session

The issue is due to the non availability of the powershell 3.0 version in the respective desktop. To solve the error install the PowerShell 3.0 version by following the instructions in the below link:

1,745 total views, no views today