无法打开VS命令提示符

时间:2015-10-20 11:41:04

标签: .net visual-studio-2012 command-prompt

我似乎无法启动Visual Studio 2012命令提示符。

启动命令提示符,窗口显示:

ERROR: Cannot determine the location of the VS Common Tools folder.

C:\Program Files (x86)\Microsoft Visual Studio 11.0>msbuild
'msbuild' is not recognized as an internal or external command, operable program or batch file.

C:\Program Files (x86)\Microsoft Visual Studio 11.0>

这些工具似乎都不起作用(如MSBuild示例所示)。

我已经完成了我的研究,你们中的一些人似乎认为我还没有完成。我已经继续VS2010 command prompt gives error : Cannot determine the location of the VS Common Tools folder了,我的问题还没有解决。

1 个答案:

答案 0 :(得分:0)

我自己也有这个问题。

问题是由域组策略拒绝的注册表访问引起的。我通过编写自己的注册表阅读应用程序并修改VS CMD启动bat文件以使用我自己的程序解决了这个问题。

我将我的注册表阅读器放在git hub上,你可以查看here

有关如何在Git Hub上应用更改的说明。