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

来源:互联网 发布:php用什么软件开发 编辑:程序博客网 时间:2024/06/05 05:54

安装VS2013后,打开开始菜单里面的“VS2012 x86 本机工具命令提示”,有如下错误:


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


原因:VS2012不是完全安装,在注册表里面没有对应的版本项值,所以批处理文件读取注册表找不到VS2012的安装目录。


新建如下内容的注册表文件导入即可:


Windows Registry Editor Version 5.00


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\SxS\VS7]
"11.0"="C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\"



具体目录根据本地机器上,VS2012所在的实际目录进行修改。

0 0