0

I am trying to set up one of my ASP.net projects for continuous integration with TFS. Amongst my requirements, I need to set up TFS so that each time there is a successful build with passing tests, the ASP.net code should be deployed to my development web server.

What I have done so far is I have set up a private agent behind my firewall (so that the agent has a "line of sight" to the development web server. I've set up a build that runs all unit tests, and I have the gated check-in setup up so that the build is rejected if the tests don't pass.

I can see that the build artifact is created by the agent, but I am stuck with trying to figure out how to actually deploy the artifact to the development web server.

I have my publish profiles in Visual Studio, but I'm guessing that those are useless in TFS.

3
  • Have you looked at the documentation? learn.microsoft.com/en-us/vsts/build-release/actions/… Commented Nov 13, 2017 at 21:20
  • Yes, I read that document you linked. It doesn't so much as tell me how to specify what server I want to deploy to! Commented Nov 13, 2017 at 22:05
  • It's just like creating a build: Compose a deployment out of the available tasks. If a task doesn't exist to do what you want, write your own or find something on the marketplace that does it. This question is too broad as-is. Commented Nov 13, 2017 at 22:40

1 Answer 1

2

You can refer to below link and follow the steps mentioned in the article to deploy the artifact to the web server:


For the publish profiles, you can pass parameters into MSBuild during the building in TFS, eg : /p:DeployOnBuild=true;PublishProfile=MyProfile

Reference below threads to use the Publish Profiles:

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

Comments

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.