MSBuild does not support deployment project (.vdproj). So we need to use the command line for continuous integration such as Cruise Control or Hudson. See the following example:
Code:"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv" FolderA\mySolution.sln /build Debug /project Setup /projectconfig Debug
Here the Setup is the deployment project "Setup\Setup.vdproj".
If you replace the project name with the project path ("Setup\Setup.vdproj") or project file ("Setup.vdproj"), it won't work due to the incorrect syntax.