MSBuild is a generalized build system that can handle any of the languages or frameworks. The C++ compilation is actually done by the
CL.exe tool, and the compiled modules are linked together with
link.exe . You will find these tools in "c:\Program Files\Microsoft Visual Studio 9.0\VC\bin". The tools are also supplied with the Visual Studio Express editions.
You can create an MSBuild script with a text editor that run tasks that call these tools, and then run MSBuild from the command line. You can learn how to create MSBuild scripts and how to use the tool in the
MSDN MSBuild documentation . That link is for VC2008 and has two introductory walkthroughs. There is a similar section in the same relative position in the VC2010 documentation. There are additional references in the .NET 3.5 documentation.
I hope that helps.