0

My current TFS build process just build my website project and output all the files, such as assemblies, web.config, etc.

From here, I learned how to create a web deploy package with MSBuild in command line.

But I want to know how to insert this package step into my current TFS build process.

Thanks for any insight.

1 Answer 1

1

Create your release package by creating a publish profile through Visual Studio. For this example mine is called Release. this will create you a Release.pubxml file in a folder called Publish Profiles, under your project, check this into source control.

Publish Profile

Then in your build definition, under the process tab. Expand the 02. Build > 5 Advanced or similar depending on the version of TFS you are using, add the following to the MSBuild argument text box

/p:DeployOnBuild=true;PublishProfile=Release

ensure the PublishProfile has the same name as the one you created earlier (Release)

web deploy build args

this will create your deployment package as part of the build

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks. I am using VS2013 Release Management. I want to include this package creation step into the *.proj file, so I automate it through MSBuild. Do you know how to use the publish profile in a *.proj file?
this is taken from my current set up which uses release managment. it should be the same arguments for a proj file. have you read Colin's ALM corner guide?colinsalmcorner.com/post/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.