I have a solution of mixed VB.NET and C++ projects. When using Visual Studio 2005 you can set the \"Tools->Option->Projects and Solutions->VC++ Directories\" to help the com
You can use /p[roperty]:useenv=true switch to forward environment variables in newer versions of MSBuild. See full article here http://blogs.msdn.com/b/vcblog/archive/2010/01/11/vcbuild-vs-c-msbuild-on-the-command-line.aspx