Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I am trying to use TFS2015 to publish a website solution like VS2015 with Publish Web App

I am using VS2015 and TFS2015. With my website solution, I can successfully Publish a Web App with the (right-click) VS2015 option of Publish Web App and the transformations to Web.config. I have tried to setup the same functionality with TFS2015 and the new Build Capabilities, but am not having any success. Is there any guidance from Microsoft on this? I have looked at various examples for the new TFS2015 Build capabilities, but do not see much functionality in publishing web sites like VS2015 easily does.

We previously used Website Deployment Projects in VS/TFS 2010, but they have been obsoleted. Surely there must be a way to publish a Web site solution in TFS2015 like VS2015 supports.

Any help is greatly appreciated. Thanks.

like image 755
Mike Avatar asked Sep 27 '22 09:09

Mike


1 Answers

The process to publish web site in TFS2015 vNext build is similar to process in TFS2013.

You need to add the followings to the MSBuild argument:

/p:DeployOnBuild=True /p:DeployTarget=MSDeployPublish /p:CreatePackageOnPublish=True /p:MSDeployPublishMethod=InProc /p:MsDeployServiceUrl=localhost /p:DeployIisAppPath="Default Web Site/TFSTest" /p:VisualStudioVersion=14.0 /p:UserName=

enter image description here

like image 126
Vicky - MSFT Avatar answered Sep 29 '22 06:09

Vicky - MSFT