Missing: Add solution to source control

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.


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"


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.