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