How to auto-deploy web application with TFS build?

You can follow the steps to auto deploy a web app to your web server with TFS
Build:


1.      
Install Web Deploy on TFS Build Server.

If you are using the TFS Build Server hosted by Dynamsoft, please contact
tfssupport@dynamsoft.com with your
Organization ID info and we'll help you install Web Deploy.


2.      
Install Web Deploy on your Web Server and prepare
the site where you want to deploy the application.

Please change the ".NET Framework Version" of the site's application pool to
v4.0 in IIS and make sure the firewall doesn't block port 8172.


3.      
Add the following arguments to the "MSBuild
Arguments" of your build definition. Separate them using space.
Note: Visual Studio 2010 is recommended for better support for web deploy.

   


/p:DeployOnBuild=True



/p:DeployTarget=MsDeployPublish



/p:MSDeployServiceURL=https://*.tfshosted.com:8172/msdeploy.axd



/p:DeployIISAppPath="TestSiteForDeploy"



 /p:CreatePackageOnPublish=True



 /p:MsDeployPublishMethod=WMSVC



/p:AllowUntrustedCertificate=True



/p:UserName=***



/p:Password=*****

Is this page helpful?

Leave a Reply

Your email address will not be published.