本文介绍了在VS2015的开发人员命令提示符中找不到dnx命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

仅安装了Visual Studio 2015 RC,当我打开Developer command prompt for VS2015并键入dnx时,它说:

Just installed Visual Studio 2015 RC and when I open a Developer command prompt for VS2015 and type in dnx it says:

两天后,我发现您输入dnvm use default会为我的环境变量添加路径,以便可以找到命令dnx.只要打开当前窗口,它就会持续存在.

I discovered, after two days mind you, that if I type dnvm use default it adds a path to my environment variable so that the command dnx can be found. This persists only for as long as the current window is open.

为什么默认的.net 5框架不会自动为我添加到PATH环境变量中?

Why isn't the default .net 5 framework automatically added to the PATH environment variable for me?

推荐答案

在我的情况下,dnvm use default -p无效.但这有帮助:

In my case dnvm use default -p didn't work. But this helped:

dnvm upgrade
dnu restore

这篇关于在VS2015的开发人员命令提示符中找不到dnx命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 04:58