visual-studio-2013tfsteam-project

How can I Add a Team Project to a Team Project Collection on a Team Foundation Server?


I don't recall the precise steps I took now to try to add a project to a Team Foundation Server, but it did not work.

What I intended to do was to add a project beneath CSReports (of which there are several related projects).

If I go to Source Control Explorer from Team Explorer in Visual Studio, I have both a CSReports and a RoboRprtrDateFilesGeneratorUtil there, but the Connect to Team Foundation Server dialog shows no "RoboRprtrDateFilesGeneratorUtil" below CSReports, nor even beneath Client Services; only CSReports appears beneath Client Services:

enter image description here

In Windows Explorer, it's even wackier: there's a CSReports" folder beneath \Workspaces, that has both another CSREports and a RoboRprtrDateFilesGeneratorUtil on the same level:

enter image description here

So why is RoboRprtrDateFilesGeneratorUtil "there" but not officially a Team Project in its own right? And how can I make it such? Do I need to start over? If so, how can I first get rid of the RoboRprtrDateFilesGeneratorUtil where it does display? Is simply deleting the folder from Windows Explorer sufficient?

UPDATE

I followed Tingting's steps, and it seemed to work, as I was able to subsequently check in the files from RoboRprtr without any clucking of tongues or wagging of fingers from the gnomes ensconced behind the digital curtain infesting the software, BUT, although RoboRprtr now ostensibly is part and parcel of the CSReports TeamProject, as can be seen in the Source Control Explorer in the Folders pane, RoboRprtr still does not appear in the list of projects beneath the "Client Services" Team Project Collection in the Connection dialog:

enter image description here

RoboRprtr should be a Team Project beneath "Client Services" on the same level as CSReports, not a sub-project of CSReports.

What the tarred-and-feathered Nation is going on here?


Solution

  • From the first picture you posted above, you haven't check in your changes. So please try the steps below to add the RoboRprtrDateFilesGeneratorUtil project under CSReports team project.

    1. At the collection level in Source Control Explorer, right-click and choose Undo Pending changes. enter image description here
    2. Select RoboRprtrDateFilesGeneratorUtil and click Undo Changes.
    3. Now you can't see RoboRprtrDateFilesGeneratorUtil project in Source Control Explorer.
    4. In Windows Explorer, copy your RoboRprtrDateFilesGeneratorUtil folder under CSReports folder.

    enter image description here

    1. In Source Control Explorer, right-click CSReports and choose Add Items to Folder.
    2. Select RoboRprtrDateFilesGeneratorUtil folder and click Finish.

    Update:

    1. You need to create a team project named "RoboRprtr" first. You could create a team project from Team Explorer or from TFS web access page, please refer to this document.
    2. Then in Source Control Explorer, you will see the RoboRprtr team project. Connect to it and create a workspace mapping for it. enter image description here
    3. In the "CSReports" team project, right click the "RoboRprtr" folder and choose Move.... enter image description here