How to Have Team Foundation Server Build and Deploy Setup Projects

This article describes how to have
TFS's build functionality accomodate and build setup and deploy projects.
The idea is to install Visual Studio on the build server and compile the
setup/deploy project from the command line using devenv.exe. This is all
wrapped up in the MSBuild script created in the Team Foundation Client when you
select to add a new build. Manually edit the TFSBuild.proj file and add in
the commands found at the link below: