Sri Chatala
Sri Chatala

Reputation: 177

dnx is not recognize to run asp.net 5 application

Upvotes: 7

Views: 5632

Answers (3)

Paul M
Paul M

Reputation: 31

Check that you've got an active runtime before you can use dnx.

dnvm use

Upvotes: 0

Johnny Camby
Johnny Camby

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.

the above installs .NET Version Manager (DNVM)

  • Then i cd into the folder where dnvm has been installed e.g cd /Users/johnny/.dnx/bin
  • 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)

  • then i got out of /Users/johnny/.dnx/bin and ran

where dnvm = C:\Users\johnny.dnx\bin\dnvm.cmd

dnvm = produced a batch of commands options to be used

Upvotes: 8

Victor Hurdugaci
Victor Hurdugaci

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

Related Questions