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

Cleaning up unused workspaces and shelvesets in TFS – in progress


It is common for TFVC users to create workspaces to temporarily download files or simply forget to delete unused shelvesets. As a Team Foundation Server Administrator, you will benefit from reducing this clutter. The tf.exe command-line utility has commands for administrating workspaces and shelvesets. In this recipe, you'll learn how to use the tf.exe utility to delete unused workspaces and shelvesets.

Getting ready

To modify or delete an existing workspace or shelveset, you must have the global administer workspaces permission set to Allow.

How to do it…

  1. Launch the developer command prompt in the elevated mode.

  2. The following command will delete the Win2k12R2_John workspace, which belongs to default collection in TFS. Refer to http://bit.ly/1P6mo6t for more examples on how to use the workspace switch with the tf.exe command:

    tf workspace /delete /collection:"http://tfs2015:8080/tfs/defaultcollection" workspacename:"Win2k12R2_John...