0
votes

I need to add existing projects to TFS, to a server that has already been set up.

However, when I open the project in Visual Studio 2013 which I want to add to TFS, and then right-click the solution and select "Add Solution to Source Control..." and select "Team Foundation Version Control" from the "Choose Source Control" dialog, I then see this:

Add Solution to Source Control window

This allows me to add the solution to "CSReports" but I don't want to do that. I want to create a new "Location" altogether, on the same level as "CSReports".

e.g., I want a separate "Location" that is the same name as my solution, and have that be the repository for it. And later create yet another, and so on.

If I select the "Make New Folder" button, it just wants to create a new folder under the selected (by default) "CSReports" Location.

How can I create a new "Location", so that I can choose that as the location in which to store the solution open in Visual Studio?

1

1 Answers

1
votes

Follow the instructions provided in the documentation at https://www.visualstudio.com/en-us/docs/setup-admin/create-team-project

Note that you have to use a version of Visual Studio that matches your TFS version in order to create a team project.

From Team Explorer You can create a team project from Team Explorer after you have connected to an on-premises server.

If you're not a member of the Project Collection Administrators Group, get added as one. To create team projects you must have the Create new projects permission set to Allow.

Ask your TFS administrator about the following resources and get additional permissions as needed:

Which team project collection you should connect to when you create your team project? If you installed TFS using the Basic Server Configuration Wizard, you have only one project collection named DefaultCollection. Unless you work in an enterprise organization and will be supporting hundreds of team projects, you should add all your team projects to a single project collection. If you need to create additional collections, see Manage team project collections.

Has SQL Server Analysis Services and SQL Server Reporting Services been configured for the deployment? If so, ask your administrator to add you as a member of the Team Foundation Content Managers group on the server that hosts SQL Server Reporting Services. Without these permissions, you’ll be unable to create a team project.

Has a SharePoint Web application been configured for your deployment? If you want to configure a SharePoint portal when you create your team project, ask the SharePoint administrator to give you Full Control permissions on the server that hosts SharePoint Products. Otherwise, you can skip this step and configure a portal at a later time.

Open the same Visual Studio of visual studio as the version of TFS that you're connecting to. If you don’t see the Team Explorer pane, open View>Team Explorer from the menu.

As needed, Download and install Visual Studio Community to get a free copy of the latest version.

Connect to the server and team project collection where you want to create your team project.

ALM_CTP_Connect

You can access Team Explorer for free by installing Visual Studio Community or any other Visual Studio version.

You must connect from a client that is at the same version level as TFS. That is, you must connect to TFS 2015 from a version of Visual Studio 2015.

Tip: If you are running Team Explorer from a server that hosts SharePoint Products and SQL Server Reporting Services, you might need to run Visual Studio as an administrator. If it’s your first time connecting to TFS, you’ll need to add TFS to the list of recognized servers.

ALM_EXL_AddServer

Open the New Team Project Wizard.

New link on Connect page (Team Explorer)

Name the team project. Don’t specify more than 64 characters.

And, note that after you’ve created a team project, you can’t change its name.

Choose a process template. For a comparison of the default process templates, see Choose a process.

Choose your version control, either Git distributed repositories or TFVC, one centralized repo.

Not sure which system to use? Learn more about Git or TFVC.

After you've created your team project, you canadd repositories.

Unless your team project collection is configured to support a SharePoint project portal, you’re done.

If the Next button is active, you can configure your project portal.

If the wizard encounters a problem, you’ll receive an error message and a link to the project creation log. Review the log file for specific errors and exceptions.

When you’re finished, you can see your team project in Team Explorer. You can also choose the Web Access link to connect to your team project from the web portal.