有没有一种方法可以从命令提示符下打开VS项目?例如,使用Atom的方式,您可以导航到要打开的文件夹,然后只运行“atom .
” VS是否存在这种实用程序?
编辑:等效于“C:\> devenv /run SomeSolution.sln
”吗?
如果是这样,那就太好了!但是似乎仍然存在问题,因为我认为至少应该识别“devenv”命令,但是我现在得到了
'devenv' is not recognized as an internal or external command, operable program or batch file.
我看到一个S/O贡献者recommended adding
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
到每个MSDN的PATH环境变量值(例如this),但我得到了相同的消息。
谁能解释可能发生的情况以及如何解决?谢谢
最佳答案
您需要将新路径添加到现有路径值。
完整的解决方案:
MyComputer >> Properties >> Change Settings >> Advanced >> Environmental variables
对我来说,这是“D:\Program Files\Microsoft Visual Studio Community 2017\Common7\IDE\”
关于visual-studio - "' devenv ' is not recognized as an internal or external command ...",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37579496/