How to configure Include/Lib directories of VC++ devenv.com command line?
I'm building a VC++ 9.0 project from command line (using devenv.com
):
devenv.com myproject.sln /Build "Release|Win32"
I n开发者_运维技巧eed to add additional include path to it. How can I do this?
I gave up using devenv.com for the same reason. I use msbuild instead.
- Add your include and lib to your project
- launch
vcvarsall.bat
- call
msbuild.exe
I have Visual Studio 2010. I created a small batch file that is in my path (because I have many dev environments on my computer).
@c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat %*
And I actually wrap msbuild.exe with this simple batch file :
@for %%i in (*.sln) do @msbuild %%i /v:m /nologo %*
With the trailing %*
, you can add other parameters when needed.
精彩评论