A great feature inside Team Build is the capability of creating deployment packages from the server in order to automatically deploy the application to the target server.
It’s really easy, you only have to create a Build Definition:
and adding the /p:DeployOnBuild=true switch to the MSBuild Arguments.
After building you’re going to find a <Project>_Package folder…
…which contains the package itself.
How to deploy it? Well…run the .deploy script or wait for another Team Build Nuggets post