Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add existing folder to Team Foundation Server 2010 that already exists for other Team Foundation Server 2012

enter image description hereI am workign with a central Team Foundation Server (2010) and I connect to it from my workstation. On my workstation I use both Visual Studio 2010 and 2012. I have installed both have the Team Explorer 2010 and 2012 and the latest patches and hotfixes.

I need to use both Visual Studio 2010 and 2012 because I am developing both .NET 4.5 code and SQL Server Reporting Server reports for SQL Server 2012.

I can configure both instances of Visual Studio to connect to TFS, I mapped my workspace in Visual Studio 2012 and I can interact with Source Control. I tried configuring Visual Studio 2010 to use the same working folder, I can connect to TFS, I can see the source control folder, but when I try to map it to the same local folder I get the following error message:

Map

The working folder "C:\TFS\Example" is already in use by the workspace JohnDoesPC; Doe, John on computer JohnDoesPC

I tried configuring the workspace mapping through the dropdown in the Source Control Explorer:

  1. Team Explorer>project>Source Control>Map Window>(Set Local Folder)

And I tried it through the Source control menu under the File menu:

  1. Go File>SourceControl>Manage Workspaces>(Highlight my showing workspace)>Edit>Try to add existing folder.

What am I missing? Do I need to map my solution folder to two different local folders? That would be very confusing and inconvenient!

The simplest way to put this is that I want two versions of TFS to point to the same local location. Is that possible? Or should I be creating a new project up just for my SSRS reports?

EDIT: See pic for more detail:

like image 413
djangojazz Avatar asked Jan 30 '13 21:01

djangojazz


People also ask

How do I add an existing directory to TFS?

Just select the folder after selecting the "Add Items to Folder..." option. You can get to this is from the context menu you get when right clicking on a folder (either the name or the actual folder itself). The next page of the wizard will present you with lists of included and excluded files.

How do I add a Team Foundation Server in Visual Studio 2012?

Open Visual Studio 2012 and from the Team menu, click Connect to Team Foundation Server. Click the Servers button. From the Add/Remove Team Foundation Server window, click the Add button.


1 Answers

Make sure that in both Visual Studio 2010 and Visual Studio 2012 the same work space name is selected. If you cannot see the workspace of 2012 in Visual Studio 2010, check the advanced workspace settings of the workspace in 2012. Ensure that the workspace type is set to server.

When both Visual Studio versions are using the same workspace name, they should be able to see and use each others file mappings as well.

This is what the settings in 2012 should look like: Workspace configuration 2012

And that workspace should be visible in 2010 as well: Workspace configuration 2010

Make sure you select the same workspace name in both versions of Visual Studio: Same workspace in both Visual Studios

like image 136
jessehouwing Avatar answered Oct 16 '22 09:10

jessehouwing