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.
gregpakes
source share