문제

I'm currently working with Team Foundation Service in combination with Windows Azure. I've created a Website in Azure and setup TFS publishing.

Everything is working perfectly except I was wondering how to configure different branches.

This article explains how you can use Git to configure different websites to point to different branches. It says:

In this example, I’ll be using GitHub.com to manage my source code. You don’t have to use GitHub.com for this, so if you’re new to Git don’t freak out, you have other options like CodePlex, BitBucket, or TFS. Heck, you could even automate an FTP deployment if you want to.

However, I can't find the branching option for my TFS publishing configuration. Am I missing something? Is this a Git only feature?

도움이 되었습니까?

해결책

After searching the web and having some contact with Microsoft I found the necessary configuration steps.

These are the things you have to do:

  • Link the two websites to your team project
  • Branch your code
  • Adjust the workspace mappings on the build definition to the staging site to map the branch
  • Change the solution to build property on the build definition for your staging site to point to the solution in your branch

I wrote a blog post about it that explains it in more detail: Branches, Team Foundation Service and Azure Websites

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top