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
?
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.
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.
You need to tell TFS to do this by passing the appropriate MSBuild parameters.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With