Cannot determine the location of the VS Common Tools folder.


用 DEVENV 在命令行编译 .sln 工程时,出现以下错误:

--------------------------------------------------------------------------------

Setting environment for using Microsoft Visual Studio 2010 x86 tools.
EXEC : error : Cannot determine the location of the VS Common Tools folder.

--------------------------------------------------------------------------------

可能原因是 环境变量设置的不完整,

set PATH=%VS100COMNTOOLS%;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\x64;

SET FrameworkDir=%windir%\Microsoft.NET\Framework
SET FrameworkVersion=v4.0.30319

如上设置之后,编译还是不通过。

将 %SystemRoot%\system32 加入PATH 环境变量后,编译通过。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM