Using TFS Team Build 2010 to deploy to Dev site and create packages for Staging and Production sites

Posted by Kb on Stack Overflow See other posts from Stack Overflow or by Kb
Published on 2011-01-13T14:25:25Z Indexed on 2011/01/13 14:54 UTC
Read the original article Hit count: 222

I am trying to configure a TFS Team Build 2010 to perform
automatic deployment to development environment and creation of deployment packages for staging and production environment.

In the field for MSBuildArguments in the build definition I have:

/p:DeployOnBuild=True <br/>
/p:DeployTarget=MsDeployPublish <br/>
/p:MSDeployPublishMethod=RemoteAgent <br/>
/p:CreatePackageOnPublish=True <br/>
/p:DeployIISAppPath=devwebsitename<br/>
/p:MsDeployServiceUrl=http://deployserver/MsDeployAgentService<br/>
/p:UserName=username<br/>
/p:Password=password<br/>

Automatic deployment of dev web site is ok and I get a package for the web site generated

How can I (the same build) get deploy packages for the other environments : Staging and Production?
Or am I missing som basic concept here?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about visual-studio-2010