8

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 ?

dove
  • 20,469
  • 14
  • 82
  • 108
Elad Benda
  • 35,076
  • 87
  • 265
  • 471

1 Answers1

9

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.

gregpakes
  • 4,465
  • 29
  • 43