Yves
Yves

Reputation: 3902

Where to find 'dnu' command in Windows

I have recently installed Visual Studio 2015 RC. I'm trying to figure out the new .NET Core thing...

Now I want to package my application and launch it. I wanted to play with DNX Utility but can not figure out how to run it.

My command prompt still insists that there is no dnu command by saying: 'dnu' is not recognized.

Searched all the entire file system but nothing found. So I don't think it is a path problem.

Do I have to install it manually? Or is it a corrupted installation problem? There is something I'm really missing out but don't have any idea what it is...

Upvotes: 65

Views: 16465

Answers (5)

Demented Devil
Demented Devil

Reputation: 141

If dnvm is recognised then you can issue the following command;

dnvm use 1.0.0-rc1-update1

this will ensure the clr/x86 version of DNX is added to your PATH.

Upvotes: 0

Hung Vu
Hung Vu

Reputation: 5934

It's actually a PATH problem. The reason why it couldn't regconise the dnu or dnx commands because it could not locate the dnu.exe, and dnx.exe... batch command files.

You can solve it either by adding manually C:\Users\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc1-update1\bin to user PATH, or run "dnvm upgrade" in your cmd

Upvotes: 3

enginocal
enginocal

Reputation: 319

It could solve to run command prompt with administrator mode.

Upvotes: 0

Johann Combrink
Johann Combrink

Reputation: 703

You Could try and run dnvm upgrade Command in your cmd.

Upvotes: 10

Victor Hurdugaci
Victor Hurdugaci

Reputation: 28425

It should be in %userprofile%\.dnx\runtimes\<runtime name>\bin.

If it is not on the path, run dnvm upgrade. If dnvm is not recognized, install it by following the instruction on the Home repo

Upvotes: 103

Related Questions