Book Image

Microsoft Team Foundation Server 2015 Cookbook

By : Tarun Arora
Book Image

Microsoft Team Foundation Server 2015 Cookbook

By: Tarun Arora

Overview of this book

Team Foundation Server (TFS) allows you to manage code repositories, build processes, test infrastructure, and deploy labs. TFS supports your team, enabling you to connect, collaborate, and deliver on time. Microsoft's approach to Application Lifecycle Management (ALM) provides a flexible and agile environment that adapts to the needs of your team, removes barriers between roles, and streamlines processes. The book introduces you to creating and setting up team projects for scrum teams. You'll explore various source control repositories, branching, and merging activities, along with a demonstration of how to embed quality into every code check-in. Then, you'll discover agile project planning and management tools. Later, emphasis is given to the testing and release management features of TFS which facilitate the automation of the release pipeline in order to create potentially shippable increments. By the end of the book, you'll have learned to extend and customize TFS plugins to incorporate them into other platforms and enable teams to manage the software lifecycle effectively.
Table of Contents (16 chapters)
Microsoft Team Foundation Server 2015 Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Connecting to TFS using Team Explorer


To build, test, track, or release your software, you'll need to connect the client of your choice to Team Foundation Server. As a software developer, you'll spend a lot of time in the Visual Studio IDE. Whether you store the code in the TFS Git repository or TFVC source control, you'll need to connect the IDE to TFS to interact with the code. In this recipe, you'll learn how to connect to TFS using Team Explorer.

Getting ready

If you have any Visual Studio 2015 SKU installed, you already have Team Explorer. With TFS 2015, a separate install of Team Explorer is no longer available; you will need to install Visual Studio Community at the very least to get Team Explorer.

Note

To connect to TFS via any of the office products, you can install the TFS Office Integration Installer: http://bit.ly/1k3wh7p. You can read more about the benefits of the TFS Office Integration Installer at http://bit.ly/1Grh3DS.

When you start Visual Studio for the first time, you'll be asked to sign in with a Microsoft account, such as Live, Hotmail, or Outlook, and provide some basic registration information. Choose a Microsoft account that best represents you. If you already have a MSDN account, it's recommended that you sign in with its associated Microsoft account. If you don't have a Microsoft account, you can create one for free. Logging in has various benefits such as the synchronization of Visual Studio settings across multiple machines. While logging in is advisable, it is not mandatory.

How to do it...

  1. Open Visual Studio 2015.

  2. Click on the Team toolbar and select Manage Connections...:

  3. From within Team Explorer, click on the Manage Connections hyperlink and choose Connect to Team Project:

  4. In the Connect to Team Foundation Server window, the drop-down shows a list of all the TFS Servers you have connected to before. If you don't see the server you want to connect to in the drop-down, click on Servers... to enter the details of the Team Foundation Server. Click on Add... and enter the details of your TFS Server. You may be required to enter the login details to authenticate with the server.

  5. The authenticated user details along with server details will update on the Connect to Team Foundation Server window. Click on the Connect button to complete the operation.

  6. You should be successfully connected to TFS via Team Explorer now:

How it works...

Visual Studio now ships with a GitHub connector. Now, the Manage Connections dialog within the Team Explorer allows you to connect not only to TFS and VSO, but also GitHub. This is a great example of how Microsoft is embracing open source by enabling seamless integration for non-Microsoft products.

Note

If you are a GitHub free account user, you will be limited to just one account in Visual Studio; this is a limitation posed by GitHub. GitHub Enterprise users have the ability to map multiple accounts from Team Explorer 2015.

If you are in two minds whether to log in to Visual Studio with Microsoft account, weigh these benefits:

  • Synchronizes your Visual Studio settings: Visual Studio settings such as key bindings and color theme, apply immediately when you sign in to Visual Studio on any another device.

  • Extends the trial period: If you do not have a Visual Studio license, by logging in you can extend the trial period on Visual Studio Professional or Enterprise from 30 to 120 days.

  • Unlocks Visual Studio: If your Microsoft account is associated with your MSDN account, your copy of Visual Studio is automatically unlocked.

If you do not want to synchronize the settings, this feature can be disabled. In the Tools menu, chose Options. Look for Synchronized Settings under Environment and uncheck the option as shown in the following screenshot: