updating to Visual Studio 2015 RC

Mon, May 25, 2015 in Development using tags Development , Visual Studio , DotNet

Updating from VS2015 CTP6 to RC

A number of changes have been made to names.

Watch this for further details:

Video: ASP.NET 5 Community Standup - Mar 10th, 2015 - The Big Rename

Key slides:

Renamed tools Renamed folder and packages

If you install visual studio, the DNVM and DNX will be setup for you.
To install Visual Studio RC, first uninstall visual studio CTP 6.
If you aren’t installing visual studio, and want to use the command line to install .NET Version Manager (DNVM) run the following command, you’ll need Powershell V3 for this.

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

Then to install .NET Execution Environment (DNX) run the following command

dnvm upgrade

I got some warnings, to remove the old environmental variable KRE_HOME

WARNING: Found a KRE_HOME environment variable. This variable has been deprecated and should be removed, or it may interfere with DNVM and the .NET Execution environment

To see what is installed, and what is the default run.

dnvm list

To set the coreclr to be used run

dnvm use 1.0.0-beta4 -x64 -r coreclr

Then to run the web server

dnx . web

When running “dnx –watch . web” from the command line, when any code changes are made, the server will stop, but not restart.
In order to get the server to restart after a code change something like this is needed.
When using visual studio this is all handled for you.

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "for(;;) { Write-Output \"Starting...\"; dnx --watch . web }"