Reputation: 3902
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
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
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
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