How to configure tfs build agent to create a publishing profile?

I have a utility for building TFS with vs2010.

I use this build template

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

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

I created a publishing profile

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

+7
source share
1 answer

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

  • Change build configuration
  • Go to the process tab
  • In the MSBuild Arguments section, enter the following:

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

This should indicate that TFS uses your publish profile when deploying your application.

+7
source

All Articles