Reputation: 177
Upvotes: 7
Views: 5632
Reputation: 31
Check that you've got an active runtime
before you can use dnx
.
dnvm use
Upvotes: 0
Reputation: 598
I am tied of this thread, because it has so many misleading answers that happen to work for some people and not for others. But anyway this is what worked for me.
open Developer Command Prompt for VS2015 and ran the following commands
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"
the above installs .NET Version Manager (DNVM)
there i ran these commands
dnvm upgrade -r coreclr (To install DNX for .NET Core)
dnvm upgrade -r clr (To install DNX for the full .NET Framework)
then i ran
dnvm setup (to firmly setup the path)
where dnvm = C:\Users\johnny.dnx\bin\dnvm.cmd
dnvm = produced a batch of commands options to be used
Upvotes: 8
Reputation: 28425
Run dnvm upgrade
.
If dnvm
is not recognized, follow the instructions on the Home repo to install it, then do the previous step.
Upvotes: 11