Jimmy Mattsson
Jimmy Mattsson

Reputation: 2113

Missing: Add solution to source control

I have successfully installed and connected to my Team Foundation 2012 server. But I am unable to add my solution to it, Im missing it when I right click on the solution, see image below.

Missing Add solution to source control

If I try to create a new solution, I can add it to my source control.

Long time ago, I had the code on a Team Foundation server 2010, but when the trial ended I had to stop using that source control. Not sure if that has something to do with this tho.

Upvotes: 17

Views: 28261

Answers (6)

debashish jyotish
debashish jyotish

Reputation: 1

if your Datatable header responsive issue then use it

$('a[data-toggle="tab"]').on('shown.bs.tab', function(e){
    $($.fn.dataTable.tables(true)).DataTable()
       .columns.adjust()
       .responsive.recalc();
 });

Upvotes: -3

VahidN
VahidN

Reputation: 19166

  • My File menu -> Add to source control option was missing in VS 2013. After opening the Team explorer tab (beside thesolution explorer tab), It appeared again.

  • Also make sure you have selected the correct plugin: Tools -> Options -> Source control -> plugin-selection -> select Git

Upvotes: 1

Robert
Robert

Reputation: 882

This happen when the project had already a previous binding. Just do:

File->Source Control->Advanced->Change Source Control

You should see your project with Invalid Binding.

Do Unbind of the project, now you'll see again the "Add Project To Source Control"

Upvotes: 19

Maryam
Maryam

Reputation: 63

I had the same problem.

After creating a project in TFS server and connecting to it by using Team Explorer in visual studio, I followed below steps:

  1. I closed VS and opened the .sln file in notepad and deleted below section.

    GlobalSection(SubversionScc) = preSolution Svn-Managed = True Manager = AnkhSVN - Subversion Support for Visual Studio EndGlobalSection

  2. I opened .sln file in VS, selected 'Visual Studio Team Foundation Server' in Tools --> Options --> Source Control page.when I right clicked on solution file 'Add to Source Control' was there.

Upvotes: 2

X-Mao
X-Mao

Reputation: 519

I got the same problem.

I found I got two projects in my solution, one was under source control, the other one was not. What worked for me was to undo the project which was already under source control. After I undo all changes, I finally found the "source control" option when I right clicked the solution.

Upvotes: 1

Jimmy Mattsson
Jimmy Mattsson

Reputation: 2113

File -> Source Control -> Advanced -> Workspaces...

There I had to Edit my workspace and define a local local folder and a soruce control folder.

Right click on solution and click on Go online, then I was able to Add solution to Source control.

Upvotes: 2

Related Questions