无法打开 VS 命令提示符

Can't open VS command prompt

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

启动命令提示符,window 显示:

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>

None 的工具似乎有效(如 MSBuild 示例所示)。

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

我自己也有这个问题。

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

我把我的注册表 reader 放在 git 集线器上,你可以查看 here

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