vs2012 无法使用命令行提示符?ERROR: Cannot determine the location of the VS Common Tools folder.
来源:互联网 发布:虚拟币交易软件 编辑:程序博客网 时间:2024/06/03 22:41
vs2012 无法使用命令行提示符?
提示:
ERROR: Cannot determine the location of the VS Common Tools folder.
百度了很多方法,都是直接修改vcvars32.bat 文件指定具体路径:
VS2012命令提示符无法使用的解决方法
打开VS2012命令提示符时报错“ERROR: Cannot determine the location of the VS Common Tools folder.”
解决方法:
1.打开计算机->属性->高级系统设置
2.新建变量VS110COMNTOOLS,属性值设置为C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\
3.打开编译VC\bin目录下的vcvars32.bat文件,在第一行添加下列语句:
根本原因:公司禁用了注册表编辑器
查看vcvars32.bat 代码,可以看到,它使用reg命令从注册表取路径。由于禁用了注册表编辑器,reg无法运行。所以取不到路径。
:GetVSCommonToolsDir
@set VS110COMNTOOLS=
@call :GetVSCommonToolsDirHelper32 HKLM > nul 2>&1
@if errorlevel 1 call :GetVSCommonToolsDirHelper32 HKCU > nul 2>&1
@if errorlevel 1 call :GetVSCommonToolsDirHelper64 HKLM > nul 2>&1
@if errorlevel 1 call :GetVSCommonToolsDirHelper64 HKCU > nul 2>&1
@exit /B 0
:GetVSCommonToolsDirHelper32
@for /F "tokens=1,2*" %%i in ('reg query "%1\SOFTWARE\Microsoft\VisualStudio\SxS\VS7" /v "11.0"') DO (
@if "%%i"=="11.0" (
@SET "VS110COMNTOOLS=%%k"
)
)
@if "%VS110COMNTOOLS%"=="" exit /B 1
@SET "VS110COMNTOOLS=%VS110COMNTOOLS%Common7\Tools\"
@exit /B 0
解决办法:
取消禁用注册表编辑器!
1 0
- vs2012 无法使用命令行提示符?ERROR: Cannot determine the location of the VS Common Tools folder.
- VS Command Prompt ERROR: Cannot determine the location of the VS Common Tools folder解决办法总结
- ERROR Cannot determine the location of the VS Common Tools Folder
- ERROR: Cannot determine the location of the VS Common Tools folder.
- 【问题解决】vs2013 command prompt错误:cannot determine the location of the vs common tools folder
- Latex Error cannot determine the size of graphic 报错的解决办法
- Error “Cannot Delete folder: The directory is not empty” Fix
- Error:Could not determine the dependencies of task ':app:transformClassesWithInstantRunForDebug'.
- Latex error:cannot determine size of graphic
- P32 (**) Determine the greatest common divisor of two positive integer numbers.
- VS 之error MSB8020: The builds tools for v110_xp......
- 解决:QT VS tools The following error occured
- CentOS6.0 安装VMWare tools遇到到问题“What is the location of the directory..."
- 安装vmware-tools出现"what is the location of the "ifconfig"program on your machine?"
- 安装 vm tools 时提示“what is the location of the ifconfig”
- 安装vmware-tools出现"what is the location of the "ifconfig"program on your machine?"
- The tools of thinking
- Error:The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location:
- 网站内部链接优化有哪些?
- 【终端快捷键】Linux terminal 终端常用快捷键
- windows系统上安装与使用Android NDK
- TextView常用属性
- 获取汉字首字母
- vs2012 无法使用命令行提示符?ERROR: Cannot determine the location of the VS Common Tools folder.
- Android4.3 Bluetooth基本介绍
- 使用 python 开发 Web Service
- android暂停或停止其他音乐播放器的播放
- Android4.3 Bluetooth 抓取hci log
- Mysql数据库查询按时间递减显示
- douban读书的API
- [数位dp] Codeforces 401D Roman and Numbers
- hadoop 出错:org.apache.hadoop.security.AccessControlException: Permission denied: