开发者

Microsoft Visual Studio 2008: devenv.exe ignores /useenv option

in Microsoft Visual Studio 2008, I want to set C++ directories (includes, libraries, etc.) for a solution (*.sln) from command line. Until Visual Studio 2003, I've successfully relied upon /useenv option of devenv.exe, started from command line. This does not seem to work on Visual Studio 2008 Professional Edition. Directories set by environment variables INCLUDE and LIB are being ignored.

Only reference I've found for this issue is here. It mentions an "External Dependencies" section in: Tools -> Opti开发者_运维知识库ons -> Projects & Solutions -> VC++ Directories. I cannot find such section. I've found what I think is an "External Dependencies" (I'm not sure because I'm running a VS2008 translated to Italian) section in: right click on solution ! Properties ! Shared Properties? ! External Dependencies?, but such section is empty.

I'm running Microsoft Visual Studio 2008 Version 9.0.21022.8 RTM and here's the batch

set INCLUDE=C:\Programmi\Microsoft Platform SDK February 2003\Include;C:\Programmi\Microsoft Visual Studio .NET 2003\VC7\ATLMFC\INCLUDE
start "devenv.exe" "mySolution.sln" /useenv

"BuildLog.htm" shows this instead:

INCLUDE=C:\boost_1_44_0;C:\Programmi\Microsoft Visual Studio 2008 Professional\VC\include;C:\Programmi\Microsoft Visual Studio 2008 Professional\VC\atlmfc\include

Any help? Thanks.


I can assure you that the /useenv switch does still work. I can still build all my solutions from the command line, right up to VS2010, with and without STLport (my main reason for overriding the INCLUDE and LIB paths in the first place).

My builds scripts are available here - http://www.cix.co.uk/~gort/win32.htm#scripts

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜