在win7上安装vs2012后运行,command line tool时,cmd窗口停在了Setting environment for using Microsoft Visual Studio 2010 x86 tools界面
解决办法
修改c:Program FilesMicrosoft Visual Studio 10.0VCbinvcvars32.bat文件,在第一行echo之后添加,根据自己安装的路径修改相应变量
@SET VSINSTALLDIR=c:Program FilesMicrosoft Visual Studio 10.0
@SET VCINSTALLDIR=c:Program FilesMicrosoft Visual Studio 10.0VC
@SET FrameworkDir32=c:WindowsMicrosoft.NETFramework
@SET WindowsSdkDir=C:Program FilesMicrosoft SDKsWindowsv7.0A
@SET FrameworkVersion32=v4.0.30319
@SET Framework35Version=v3.5
注释如下三句
::@call :GetVSCommonToolsDir
::@if "%VS100COMNTOOLS%"=="" goto error_no_VS100COMNTOOLSDIR
::@call "%VS100COMNTOOLS%VCVarsQueryRegistry.bat" 32bit No64bit
http://social.msdn.microsoft.com/Forums/en/vcprerelease/thread/64d2bc64-3ec9-49db-9833-022321711e38
注意要在上面论坛的路径后加,否则cl用不了。
最后
以上就是阔达跳跳糖最近收集整理的关于vs2010 command prompt 运行时停在Setting environment for using Microsoft Visual Studio 2010 x86 tools.的全部内容,更多相关vs2010内容请搜索靠谱客的其他文章。
发表评论 取消回复