Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do add a project to source control within an existing solution

I've recently noticed that my ..LibraryTests project is not under source control:

enter image description here

When I try to do a checkin (by right clicking on the solution and pressing check in) it says that there are No Pending Changes. It's not seeing changes to the LibraryTests project because it is not under source control.

From my perspective:

  1. The first project is under source control
  2. The second project is not under source control
  3. The solution itself does not seem to be under source control.

How do I get the entire solution including the Tests project checked in?

like image 311
Alex Gordon Avatar asked May 26 '16 14:05

Alex Gordon


People also ask

How do I add a project to Source Control?

On the Project tab, in the Source Control section, click Use Source Control. In the Source control Information dialog box, click Add Project to Source Control. In the Add to Source Control dialog box, in the Source control tool list, select Git to use the Git source control tool provided by the project.

How do I add a project to Source Control in Visual Studio?

In Visual Studio 2010, In the Team Explorer window, expand your team project, and then double-click Source Control. On the Source Control Explorer tab, in the Folders pane, select the folder that contains the item or items you want to add. Click the Add Items to Folder button.


1 Answers

If you go into Source Control Explorer and navigate to your project you should see that LibraryTests isn't included. Right click on the folder, click on "Add items to folder..." then click on your project folder thats missing. Click next and this should add it to source control.

like image 194
SpeedOfSpin Avatar answered Oct 16 '22 05:10

SpeedOfSpin