Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft Team Foundation Server 2015 Cookbook

You're reading from   Microsoft Team Foundation Server 2015 Cookbook Over 80 hands-on DevOps and ALM-focused recipes for Scrum Teams to enable the Continuous Delivery of high-quality Software... Faster!

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher
ISBN-13 9781784391058
Length 340 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
Tarun Arora Tarun Arora
Author Profile Icon Tarun Arora
Tarun Arora
Tarun Arora Tarun Arora
Author Profile Icon Tarun Arora
Tarun Arora
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Team Project Setup FREE CHAPTER 2. Setting Up and Managing Code Repositories 3. Planning and Tracking Work 4. Building Your Application 5. Testing Your Application 6. Releasing Your Application 7. Managing Team Foundation Server 8. Extending and Customizing Team Foundation Server Index

Renaming a Team Project

As your software evolves, at times you may find that the Team Project name you chose at the outset doesn't quite lend itself to the purpose of your project any more. Up until TFS 2015, it was fairly impossible to rename a Team Project once it was created. Team Project Rename has been the most voted feature on the Visual Studio User Voice website with over 6,000 votes. TFS 2015 now allows you to rename a Team Project. While the product has made it very simple to rename a Team Project, it is still a very disruptive process. In this recipe, you'll learn how to rename a Team Project and also go through the nuances of how to do so and what to watch out for when renaming a Team Project.

Getting ready

A Team Project Rename updates all of your version control paths, Work Items, queries, and other Team Project artifacts to reflect the new name. Team Projects can be renamed multiple times and older names can be reused as well. It is recommended to perform this action during off hours to minimize any impact. Things to consider are as follows:

  • In order to rename a Team Project, you need to be a member of the project administrator group.
  • Builds running during the rename might fail.
  • All users will need to restart Visual Studio.
  • Git remotes will need to be updated with the new project name.
  • Version control workspaces will need to be corrected by running the latest get version command.

    Note

    If individuals in the Team are using local workspaces then it is recommended to upgrade to Visual Studio 2013 update 5 or Visual Studio 2015 (release candidate or newer) to have the workspaces auto corrected for them at the next get. If they continue to use an earlier version of Visual Studio, then they will need to shelve any pending changes, create a new workspace, and unshelve their changes.

How to do it...

There are two entry points to the Project Rename feature through Team Web Access.

Option 1

  1. Navigate to the administration page for the Team Project by browsing http://tfs2015:8080/tfs/DefaultCollection/FabrikamTFVC/_admin/.
  2. On the left where the project name and description for the project are listed, you can click on the project name textbox to amend the name:
    Option 1

Option 2

  1. Navigate to the collection administration page by browsing http://tfs2015:8080/tfs/DefaultCollection/_admin.
  2. Rename the Team Project from the context menu:
    Option 2
  3. Change the name of the project from FabrikamTFVC to Fabrikam and proceed. You will receive a project rename warning message. Please read the warning message carefully and make sure that the users of the Team Project are aware of the rename.

    Note

    When a Team Project is being renamed, any browsers with the Team Project opened may encounter some errors. These errors are due to caches held by the browser, which include the old Team Project name.

    Option 2
  4. Tick the checkbox to acknowledge the warning and click RENAME PROJECT. The dialog will show the status. Click on Close once the rename is complete.
    Option 2

    Note

    Any default artifacts created in the Team Project get renamed along with the project if they share the same name as the Team Project. This includes artifacts such as the default Team, Team Room, and Git repository.

How it works...

In this section, we'll focus on actions that need to be performed by the Team once the Team Project rename has been completed.

  • Restarting the editor: The editor you used to connect to the Team Project needs to be restarted. Be it Team Explorer, Eclipse, Office, Microsoft Test Manager, or any additional clients using the TFS Object Model.
  • Updating query-based test suites: Unlike Work Item queries, query-based test suites are stored differently and can't update the Team Project name after rename. If you have any query-based test suites, open those suites in the browser and update the queries to use the new Team Project name.
  • Updating SharePoint Team Sites and Reporting Integrations: Both SharePoint and Reporting Services Integrations continue to work, but some reports will not work as expected until the new Team Project name is populated. The old project name is still present until caches are updated with the new name. The reporting and SharePoint server administrator can manually run these jobs to immediately populate the new name.

    Note

    A Team Project name can't be reused if there are still workspace mappings addressing it. This is done to avoid the ambiguity case where a workspace can be mapped to two projects. You will need to reach out to the users that have these mappings and either delete them or update them to use the new name.

You have been reading a chapter from
Microsoft Team Foundation Server 2015 Cookbook
Published in: Jan 2016
Publisher:
ISBN-13: 9781784391058
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime