Tf Workspace Command

tf workspace Common tfpt commands tftp. In conclusion, I would not recommend using Version Control API for merge and conflict resolutions but rather recommend sticking to command line tf. I mapped a project to the default workspace, checked out a file - it showed…. MS Build Project file creation wizard will open up. I was troubleshooting a build and wanted to completely remove any workspace the build service might be using. Previous columns have talked about Team Foundation Version Control and workspaces, which define where code files are stored locally while being edited. Why do you need the name of workspace? Most tf commands are able to guess the workspace name by local paths. exe client for advanced scenarios. Workspaces can be removed using some command line TFS commands. If you need previous versions of the power tools, you can go to: Microsoft Visual Studio Team Foundation Server 2013 Power Tools, Microsoft Visual Studio Team Foundation Server 2012 Power Tools, Team Foundation Server Power Tools December 2011. Show remote workspaces, removing all workspaces via command line, etc revealed nothing. http://dscl. The command prompt should be on a client machine, not on the build server. Team foundation server is a best tool to provide source code management and handling with great team collaboration features and it covers the entire application life cycle. Now you can run the shelve command: tf shelve /recursive name;owner *. Unlike the Eclipse integration, which enables you to work only with the Developer Tools workspace, the command-line tool enables you to work with any workspace. The file to use as the WORKSPACE file for this repository. "Unable to determine the workspace. Source Control Folder: TFS server path project. The workspace name could change from build to build. Team Foundation Server (TFS 2010) administrators have experienced that managing source control from the command line (tf. Unable to determine the workspace - TF. p4 change Create or edit a changelist specification. Even administrators are not allowed to unlock that file. I borrowed the idea from a post by Mahesh Mitkari and first checked if the workspace is indeed mapped. The command line interface is comparable to the SVN command line. 102 and above. This reduced the list of workspaces significantly which made it easy to find the workspaces I wanted to delete. Team foundation server is a best tool to provide source code management and handling with great team collaboration features and it covers the entire application life cycle. Then we deleted them. TFS checkout files from a batch file. It is a TFS admin productivity. TFVC supports two different types of workspaces when working with client tools - Server Workspaces and Local Workspaces. In order to run the command you must have project administrator privileges on your project. How to delete workspace from TFS (Team Foundation Server)? Now its long time I'm working on TFS, everyday leaning something new as it's creates new problem for me. And it ships with the command line tool tf. Multi-root Workspaces. Unfortunately Microsoft has made it hard to find in VS2015. from the Windows command prompt `CD` to the source directory b. (For VS 2008 workspace, open VS 2008 command prompt. How to open Visual Studio Command Prompt? To remove such an orphaned workspace perform the following steps: 1) Open a Visual Studio command prompt, so that "tf" command can be executed. If you are wondering about what files are currently checked out in specific project in TFS, there is a command line statement in TFS you can run to fetch list of files checked out by specific user or all user. In this case, I need to use the tf undo command. Our team uses Codenvy connected to our open source GitHub repos to make it easier for our committers and external contributors work together. Please remember to mark the replies as answers if they help. Hi, Are you using RoboHelp on German OS? Only English version of tf command line client (tf. I borrowed the idea from a post by Mahesh Mitkari and first checked if the workspace is indeed mapped. Note that /r is short for /recursive. txt link in your 'src' folder. Change user of a workspace in TFS Suppose you have a workspace made with a certain user and you want to move it to a different user. process class. Note that /r is short for /recursive. Mickey explains the basics of workspaces in Team Foundation Version Control and how they can help you manage code changes. When you click ( assume you have 4 workspace ) one of the rectangle of my workspace switcher clone program ( I make the similar user interface ), it will execute ( forking maybe ) "the command to change the workspace". The workspace name could change from build to build. I'd much rather see the help spit out on the console like other command lines. One of the greatest tools Microsoft has delivered us is tf. ) To designate a directory as a Bazel workspace, create an empty file named WORKSPACE in that directory. One time setup Create Workspace Login to the server Run tf workspace command $ tf workspace /new /noprompt /comment:"<> workspace on Dev. Deleting a workspace using GUI. Command Description p4 add Open file(s) in a client workspace for addition to the depot. However, if you install the Microsoft Visual Studio Team Foundation Server 2013 Power Tools Update 2 , they come with some basic PowerShell cmdlets for interacting with TFS. diagnostics. operations for Team Foundation Server as a software application. This is what TFPT documentation says: When running tfpt using a command that works with Version Control, you may receive one of the errors: Unable to determine the workspace Unable to determine the source control server Solutions: 1) Run tfpt from within a directory that is already mapped to Team Foundation source control. This meant I could specify the workspace owner as "Project Collection Build Service" which was the scope I was using. You'll need permissions in TFS to delete the workspace. TFVC - Unmapping a workspace using tf. If you have feedback for TechNet Subscriber Support, contact [email protected] json file) and slowly morphed it from what was there to what I want it. Windows and Linux installations should add the VS Code binaries location to your system path. TFS Workspaces Cleaner deletes Team Foundation Server workspaces that have not been accessed in a number of days, along with their files locally on disk. Switch Git branch in TFS Web Access. I have been working with a team that has recently migrated a TFS source project from a trail TFS to a full production server (different server). Importing existing projects. You'll be prompted to confirm the changes to the workspace (assuming it doesn't exactly match the items in source control). Deleting the workspace also removes the lock on the files. When you execute that command, tf. TF Sidekicks uses the same commands so would require the same permission. You can pass three parameters to this script. Try for FREE. Creating a Workspace Before you can add files to the version control server or check out items on the server in order to edit them, you must create a workspace or associate an existing one with the current directory. This morning I booted my PC, started Visual Studio only to find all my TFS workspaces were missing. Following steps: Copy the project using Windows File explorer at different location. PowerShell and TFS Work Items James Manning has a blog post about PowerShell script that builds a Team Foundation Server Client ob PowerShell V3 Enables Windows 8 Server to be optimized for the Cloud Windows Server 8 took the stage on Day 2 of the BUILD conference. I didn’t have access to the account that the pre-existing workspaces where used under, but needed to delete them anyway. Open Visual Studio Command Prompt by going to Start –> All Programs –> Microsoft Visual Studio (whatever version you are on) –> Visual Studio Tools –> VS Command Prompt (name may vary). Undo, unlock file (User's checkout) in TFS. To get the list of workspaces for a user, just run the following command from the same prompt: tf workspaces /owner. Today I saw a reference to the TFS Workspace Gotcha! post in today’s Team System Rocks VSTS Links roundup. exe utility to delete unused workspaces and shelvesets. The p4 changes command, when involked with @clientname as a revision specifier, shows the highest changelist associated with file revisions in your workspace. The final step is to convert the folder (called “master” here) to a branch in TFS. tirubhaskar Deep dive into Merging Team Foundation Server Version Control, TFS Leave a comment To find out that a change done in file or folder in one branch whether it is merged to another branch or not? is known as Tracking the Merges. If you have feedback for TechNet Subscriber Support, contact [email protected] 5/28/2012 - Tim Elliott. The tf tool is not located in the TFS install directory. By Mickey Gousset; 07/26/2011; When working with Team Foundation Version Control, one of the concepts you need to understand is the workspace. Posted on admin. PowerShell tips and tricks - Retrieving TFS collections and projects Introduction The following post is not really about a tip or a trick regarding a PowerShell itself. " I logged in as my SU locally, and sure enough, there was a workspace all setup for that user. Question - Why is AX trying to create multiple workspaces with the same name instead of using the first one? Any help would be greatly appreciated. Although Microsoft did a good job describing on how this plugin should be installed and described some basic settings, there are many non covered questions by the documentation. If you are wondering about what files are currently checked out in specific project in TFS, there is a command line statement in TFS you can run to fetch list of files checked out by specific user or all user. This was the exact command line. Some months back I was using some 'ABC' TFS user to connect to TFS and mapped some folders on my local drive. Get that permission first. exe” which resides in the common IDE folder of the Visual Studio installation directory. I then thought “what if it’s actually linked to the SU user account on my computer , not the domain. There's a command to deal with the problem, but it's not obvious. Move faster, do more, and save money with IaaS + PaaS. For each workspace, Team Foundation displays the name, owner, comment, and computer name. I had to execute the same command on the TFS server itself to delete both the client and de server workspace. With the TFS repo primed we can now switch to the Git side. TFS Administrator console also does not provide any workaround this. First of all: you obviously need to be either the owner of the workspace or have the Administer workspaces permission on the Team Foundation Server to perform this. (Optional) Remove unwanted old workspaces. TFS provides a handful of options for selecting source files easily within the “Get Specific Version” dialog. Rename Renames a. Restart Visual Studio and connect to the new TFS server. Rename Renames a. Once created, these workspaces will be always there, even after the next boot. This command will show all the workspaces you created in your machine and also the collection name. And it ships with the command line tool tf. We decided to delete and re-add the SSAS project in TFS. Run "Developer Command Prompt for VS 2017" from Start menu. You can work with multiple project folders in Visual Studio Code with multi-root workspaces. In this post I will be w alking you through the Team Foundation Version Control (TFVC) support within Visual Studio Code. I need to be able to use the command line, such as "tf merge $/A $/B" with appropriate other parms, but it balks because it needs a workspace and there is no "workspace" parm for the merge command. (A directory within the workspace that contains a BUILD file is a package. An archive of the CodePlex open source hosting site. Once the Perforce server is installed, a SQL Server database can be linked to a Perforce repository. In this post, I want to show you some of the new features and changes in the 2013 version of Team Foundation Build. It is a TFS admin productivity. So there are two Team Collections that are on that server root. The following prompts are displayed. com/en-us/library/cc31bk2e(vs. in the Visual Studio Command Prompt type. IT would not allow a single AD login, and TFS will not allow a workspace to be used by different users on the same PC. TF 51/5 is the product of this continuing evolution in naval integration and I’m proud of the pride, professionalism and drive the Marines and Sailors in this command display every day as we. I need to be able to check out files with a lock from windows and linux simultaneously. http://dscl. Here's the post. Get that permission first. Use the following command to delete unwanted old workspaces. This works great for cleaning up a single TFS workspace. Either workspace_file or workspace_file_content can be specified, but not both. This morning I booted my PC, started Visual Studio only to find all my TFS workspaces were missing. How do I completely wipe all TFS mappings from my machine? for 2005-2010, look at the tf workspace command. tf workspaces /remove:* or tf workspace /delete ;. On this page you can find the previous versions of the Power Tools for Team Foundation Server 2012. operations for Team Foundation Server as a software application. 0 and later. TFS Workspaces Cleaner deletes Team Foundation Server workspaces that have not been accessed in a number of days, along with their files locally on disk. I borrowed the idea from a post by Mahesh Mitkari and first checked if the workspace is indeed mapped. Call "tf workspace" from a developer command prompt. How to delete workspace from TFS (Team Foundation Server)? Now its long time I’m working on TFS, everyday leaning something new as it’s creates new problem for me. Note: Users on macOS must first run a command (Shell Command: Install 'code' command in PATH) to add VS Code executable to the PATH environment variable. Hi, Are you using RoboHelp on German OS? Only English version of tf command line client (tf. Then we deleted them. After creating the TFS workspace that maps your local working copy folder to a TFS repository folder, it is good practice to verify that the TFS workspace functions correctly. Click next and leave other options as is & click the FINISH button. exe command to list the workspaces: tf workspaces. The only solution I found is using "server workspace". Verify the TFS Workspace Enterprise Architect will be using the TFS command line client to commit file updates from the local working copy folder into the TFS repository. I was troubleshooting a build and wanted to completely remove any workspace the build service might be using. Since I'm using Visual Studio and it plays well with TFS, I started looking if Visual Studio has some tools to help us. RoboHelp supports the tf. Since not all our files that are in TFS source control are used from Visual Studio it’s kind of overdone to start visual studio for getting the latest version of a SQL script. Even administrators are not allowed to unlock that file. I received How To : Microsoft : TFS (Team Foundation Server) : Get check-ins for a specific user using TF. In this post I will be w alking you through the Team Foundation Version Control (TFVC) support within Visual Studio Code. For example, if you use Consul, the workspaces are stored by appending the workspace name to the state path. In conclusion, I would not recommend using Version Control API for merge and conflict resolutions but rather recommend sticking to command line tf. Many times we need to retrieve the list of all workspaces from all users on all computers to remove unwanted workspaces. It becomes headache one needs to change TFS account on Visual Studio. To combat this behavior, you'll want to unmap the default after adding in your desired folder mapping(s). When you want to work on another branch, you [change your workspace] open the solution from this workspace and start working. Add command to refresh TFS's workspace cache Create issue. We decided to delete and re-add the SSAS project in TFS. exe is important when you want to execute TFS based commands TF. from the Windows command prompt `CD` to the source directory b. exe command. via the web UI. Loss scaling involves multiplying the loss by a scale factor before computing gradients and then dividing the resulting gradients by the same scale again to re-normalize them. How to open Visual Studio Command Prompt? To remove such an orphaned workspace perform the following steps: 1) Open a Visual Studio command prompt, so that "tf" command can be executed. Although Microsoft did a good job describing on how this plugin should be installed and described some basic settings, there are many non covered questions by the documentation. Creating a Workspace Before you can add files to the version control server or check out items on the server in order to edit them, you must create a workspace or associate an existing one with the current directory. We need two commands for this: tf workfold /map <<< to change the workspace folder mapping. The workspaces command of the tf command-line utility displays information about workspaces on the current computer, owned by a specified user, or for all workspaces associated with a specific Team Foundation Server. This command will delete the workspace. TFS2010: Reconcile Workspace after Gated Checkin is weird if Visual Studio 2010 is Elevated September 9, 2010 by Ben Day Problem: After running a TFS2010 Gated Checkin Build, Reconcile Workspace leaves pending changes if Visual Studio 2010 is running with “Elevated” permissions. Team foundation server is a best tool to provide source code management and handling with great team collaboration features and it covers the entire application life cycle. exe) is faster and more convenient. * /move (Here name is the name of the shelveset and owner is the domain\username of the new user) The shelve dialogue opens, so you can review the shelveset. tf workspace /delete: Note: If you delete a workspace that contains pending changes, Team Foundation cancels the pending changes as part of the delete process. exe is a command line tool that you can use to work with files and directories under version control, team projects, and work items. This command will show all the workspaces you created in your machine and also the collection name. Creates, modifies, and saves workspaces and makes a workspace current. Make sure that the tf. Quick Search. Team Foundation Server TF GET (command-line and password to authenticate the user with Team Foundation Server. How to Permanently Delete Items in TFS. Problem: Unmapping a workspace. By Mickey Gousset; 07/26/2011; When working with Team Foundation Version Control, one of the concepts you need to understand is the workspace. You need to use TF command on Visual Studio command prompt to remove the old workspace. Compatibility. Team Foundation Version Control - Workspaces. To get the list of workspaces for a user, just run the following command from the same prompt: tf workspaces /owner. I borrowed the idea from a post by Mahesh Mitkari and first checked if the workspace is indeed mapped. To use these commands, start tfpt. For each workspace, Team Foundation displays the name, owner, comment, and computer name. txt link in your 'src' folder. One of the reason could be, you started working with an account then your account changes for various reason, so you need to migrate all workspaces from your old user to another user. git-tfs provides a two-way bridge between a local Git repository and a TFS server. I was experimenting with TFS tasks and constructing VSIX files because I have been away for a little while. So open up the Visual Studio Command Line window and navigate to your local mapped directory for the project. com The workspaces command of the tf command-line utility displays information about workspaces on the current computer, owned by a specified user, or for all workspaces associated with a specific Team Foundation Server. With the TFS repo primed we can now switch to the Git side. Hope they […]. (A directory within the workspace that contains a BUILD file is a package. Load the Visual Studio developer command prompt. Without forking "the command to change the workspace," I don't know how to change the workspace. Using Team Foundation Version Control with Command Line Xiao Ling / May 21, 2018 May 9, 2018 / Team Foundation / Team Foundation , TFVC When creating a new project in Visual Studio, there are two options for version control: Git , which is distributed version control, and Team Foundation Version Control (TFVC), which is centralized version control. Type “Yes” and the deed is done. comまで。 詳細プロフィールを表示. The username and password must be enclosed in quotes:. PowerShell tips and tricks - Retrieving TFS collections and projects Introduction The following post is not really about a tip or a trick regarding a PowerShell itself. In order to run the command you must have project administrator privileges on your project. Problem: Unmapping a workspace. To find out the workspace for a user, there is a workspaces option for the tf command line prompt. Creating a Workspace Before you can add files to the version control server or check out items on the server in order to edit them, you must create a workspace or associate an existing one with the current directory. In this article, we are going to explore the capability to build customized utilities using a set of commands provided by TFS in tf. exe" which resides in the common IDE folder of the Visual Studio installation directory. exe" helps with two scenarios:. For example, if you use Consul, the workspaces are stored by appending the workspace name to the state path. It will bring up the "Manage Workspaces" directly! If the mentioned clues are not helping you then download Team Foundation Sidekick and using that you can delete the workspaces. Visual Studio 2010 connecting to Team Foundation Server 2012 Finding If Visual Studio 2012 is the first thing that you open to create a new workspace against a new collection a default workspace of “computername;username” will be created as a “ Local ” workspace. While the thing is doable, you should be prepared to spend quite an amount of quality time on it and be prepared later to fix bugs (mostly related to myriad. tf maintains the relationship between coordinate frames in a tree structure buffered in time, and lets the user transform points, vectors, etc between any two coordinate frames at any desired point in time. If you run the following command, it will list all the workspaces created. The command to delete items in TFS is "tf destroy". Visual Studio Online, which is an SaaS offering of Team Foundation Server, requires enabling the alternate authentication credentials option. Now you need to open VS Tools command prompt. These subcommands are listed in the navigation bar. To find out the workspace for a user, there is a workspaces option for the tf command line prompt. I was troubleshooting a build and wanted to completely remove any workspace the build service might be using. Visual Studio doesn't give you access to undo a checkout in another workspace if it's not your workspace, however the TF. It will also not overwrite locally writable files. Team Foundation Server (TFS 2010) administrators have experienced that managing source control from the command line (tf. a new Windows batch command should be added. I ran into a weird issue. Team Foundation Server Error: tf commands in Unable to determine the workspace". Using Powershell to Manipulate TFS Get Latest, Check In, and Merge In our environment, changes made in the Test branch have to travel through the Main branch and into the Release branch to be deployed into production. I run into issues when I use "tf. Quick Search. exe" helps with two scenarios:. Some of the commands will display a graphical user interface when used. Compatibility. Show remote workspaces, removing all workspaces via command line, etc revealed nothing. I went through the msdn documentation. Issue #7 new. Create the Git "Bridge. Following steps: Copy the project using Windows File explorer at different location. For example, if you use Consul, the workspaces are stored by appending the workspace name to the state path. TeamCity checks workspace for every checkout. tf workspace /newname:YourNewWorkspaceName YourActualWorkspaceName /noprompt (alternatively you can use the standard cmd line but then you need to locate tf. Running 'tf history -version:Wworkspace_name' without specifying TFS workspace owner after workspace name (e. Make sure that the tf. To switch between workspaces, you can simply move the cursor to top left of the screen, like you did to create a new workspace. However you can have two or more workspaces for one computer, and each workspace can map a TFS folder to a different local folder. Quick Search. Add a command to refresh TFS's. Read the macOS setup guide for help. * /move (Here name is the name of the shelveset and owner is the domain\username of the new user) The shelve dialogue opens, so you can review the shelveset. I need to be able to check out files with a lock from windows and linux simultaneously. Maybe they'd be obvious to someone better-versed in TFS than I, but here they are. tf workspace /delete: Note: If you delete a workspace that contains pending changes, Team Foundation cancels the pending changes as part of the delete process. While the thing is doable, you should be prepared to spend quite an amount of quality time on it and be prepared later to fix bugs (mostly related to myriad. (It's really a sweet product, but only if you are good in command prompts use and expert to use TFS). Now you need to open VS Tools command prompt. However, working with tf. in the Visual Studio Command Prompt type. See the complete profile on LinkedIn and discover Larry’s. I changed my account on Team Foundation Server Online and had multiple workspaces bound to my old account, so when trying to create new workspace I could do so as there was already a workspace created for my old account. The Team Project page of the Share Project to Team Foundation Server dialog box appears. How to change the owner of a TFS workspace This occurs when you have created a workspace using one account, a local machine account for instance, and then want to access it via another account, a domain account for instance. Command Line Goodness. I borrowed the idea from a post by Mahesh Mitkari and first checked if the workspace is indeed mapped. Today I was trying to find out who has what checked out from a certain folder in TFS - call it $/Project/Folder. After creating the TFS workspace that maps your local working copy folder to a TFS repository folder, it is good practice to verify that the TFS workspace functions correctly. TF Sidekicks uses the same commands so would require the same permission. (Optional) Remove unwanted old workspaces. To find the number of the workspace you are currently on, you could use xdotool get_desktop. Posted on admin. However this can be done with command line. export TF_AUTO_SAVE_CREDENTIALS=1 tf workspace -new CompanyUniversal. In this post I will be walking you through the Team Foundation Version Control (TFVC) support within Visual Studio Code. These subcommands are listed in the navigation bar. When you execute that command, tf. Select the Workspace from the File > Open Recent (⌃R (Windows, Linux Ctrl+R)) list. It does not offer a complete help. List current workspaces for your user: Map a new one locally: Populate it: If you want to dispose of it, then, first, unmap it: Now, recursively delete the workspace directory. Please remember to mark the replies as answers if they help. p4 changelists List submitted and pending changelists. Team Foundation Version Control and the Linux Command Line. How to delete workspace from TFS (Team Foundation Server)? Now its long time I’m working on TFS, everyday leaning something new as it’s creates new problem for me. exe utility's Undo command (. The command is: tf workspace /delete [/server: servername] workspacename [; workspaceowner] Source: MSDN. You need to get your TFS administrator to delete the workspace if you have no access to the account. However, if you install the Microsoft Visual Studio Team Foundation Server 2013 Power Tools Update 2 , they come with some basic PowerShell cmdlets for interacting with TFS. (It’s really a sweet product, but only if you are good in command prompts use and expert to use TFS). This morning I booted my PC, started Visual Studio only to find all my TFS workspaces were missing. TFVC is a centralized version control system allowing teams to store any type of artifact within its repository. exe removes the cached workspace entries that use the old computer name, calls the server to tell it the current computer name, and gets the current list of workspaces owned by you on the current computer. Creating a Workspace Before you can add files to the version control server or check out items on the server in order to edit them, you must create a workspace or associate an existing one with the current directory. migrattion tfs 2015 to tfs 2018 build pipleline not migrated 0 Solution [TFS2017. Now you need to open VS Tools command prompt. See the docs for more information. Normally to set up a workspace on each dev's machine I'd have to do the following: A. Select "Project file", click create button. Team Foundation Server's (TFS) command-line interface tf. In case in you have changes your computer name & you want to change the Tfs workspace name follow the following command. Team Foundation Version Control. To load bus data, use a structure of MATLAB timeseries objects. tf Command line utility provide many useful operations that we can perform with Team Foundation Se… Shelving and Unshelving Shelving is very powerful feature of the Source Control in VSTS that allows storing pending change…. p4 admin Perform administrative operations on the server. » Command: workspace The terraform workspace command is used to manage workspaces. tf workspace /newname:YourNewWorkspaceName YourActualWorkspaceName /noprompt (alternatively you can use the standard cmd line but then you need to locate tf. Loss scaling involves multiplying the loss by a scale factor before computing gradients and then dividing the resulting gradients by the same scale again to re-normalize them. exe also contains subfolders for different languages. In Visual-Studio 2012 & Team Foundation Server 2012: Source Control Explorer>File>Advances>unlock option is disabled. This command is a container for further subcommands. How can i get a list of all workspaces for the current user on the current computer using TFS API? detecting existence of workspace with tf command. In this post I will be walking you through the Team Foundation Version Control (TFVC) support within Visual Studio Code. I went through the msdn documentation. migrattion tfs 2015 to tfs 2018 build pipleline not migrated 0 Solution [TFS2017. See the docs for more information. » Command: workspace The terraform workspace command is used to manage workspaces. Update 2 of Team Foundation Server 2015 dated 3/30/2016 consisted of these downloads for (x86 and x64) - DVD (English) :. I borrowed the idea from a post by Mahesh Mitkari and first checked if the workspace is indeed mapped. This is especially useful on build servers, where build definitions that have not run in a while can take up large amounts of disk space (which is not even cleaned up by build retention policies). To ensure that workspace names are stored correctly and safely in all backends, the name must be valid to use in a URL path segment without escaping. Today I was trying to find out who has what checked out from a certain folder in TFS - call it $/Project/Folder. The folder that contains tf. Creating local workspace mapping returns "already in use by the workspace" tfs Karlton Zeitz reported May 25, 2017 at 02:25 PM. The code is going to create a new TFS workspace with the name of your Jenkins job. You may be able to do it by calling "tf workspace" with the explicit user specified, but you need "manage other users workspace" permission. This works really well within Visual Studio, but how can you do this programmatically? As it turns out, the Workspace. However you can have two or more workspaces for one computer, and each workspace can map a TFS folder to a different local folder. (A directory within the workspace that contains a BUILD file is a package.