Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to configure tfs build agent to build publishing profile?

I have a TFS build srver with vs2010.

I'm using this build template

http://ge.tt/3KQnZuR/v/0?c

On my own machine I have created a new solution in vs2012.

I have created a publishing profile

How can I attach this pubxml to the tfs-builder agent instead of the old web deployment project ?

like image 479
Elad Benda Avatar asked Nov 19 '12 13:11

Elad Benda


People also ask

How do I publish from TFS?

In Visual Studio, open your Web Project. Right click the Web Project node from Solution Explorer and choose Publish. On the Profile tab of the Publish Web dialog, click Import to import the publish settings file. Test that you are able to deploy from Visual Studio.

How do I create a build and release in TFS?

In the TFS web portal, open the desired project. Select Build and Release and then Builds in the Navigation bar. Click the +New button to create a build definition. On the Select your repository page, select the preferred repository type and Continue.


1 Answers

You need to tell TFS to do this by passing the appropriate MSBuild parameters.

  • Edit the build configuration
  • Goto the process tab
  • In the MSBuild Arguments section enter the following:

/p:DeployOnBuild=true;PublishProfile=<NameOfPublishProfile>

This should instruct TFS to use your publishing profile when it deploys your app.

like image 175
gregpakes Avatar answered Nov 04 '22 10:11

gregpakes