问题
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...
回答1:
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
回答2:
You Could try and run dnvm upgrade Command in your cmd.
回答3:
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
回答4:
It could solve to run command prompt with administrator mode.
回答5:
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.
来源:https://stackoverflow.com/questions/30106225/where-to-find-dnu-command-in-windows