Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get rid of "The solution you are trying to open is bound to source control" message

I have a Visual Studio solution files copied from a source controlled solution. I don't want it to be source controlled and when I open it I get the message: the solution you are trying to open is bound to source control

I deleted the .vssscc files but still get the message. How can I get rid of it?

Thanks.

like image 287
Burjua Avatar asked Feb 19 '14 14:02

Burjua


People also ask

How do I remove a source control solution?

To remove files from source control: If you select a folder, project, or solution, any eligible child items will also be removed. choose Source Control > Remove or press Ctrl+R, R. The dialog will list the files that can be removed. In that dialog, you can deselect any files you don't want to remove.


1 Answers

You need to clean the solution file (.sln) by removing the following GlobalSection:

GlobalSection(TeamFoundationVersionControl) = preSolution     SccNumberOfProjects = 2     SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}     SccTeamFoundationServer = http://example.com/tfs/defaultcollection     SccLocalPath0 = .     /// --- more solution specific stuff omitted --- /// EndGlobalSection 

and you need to remove the source control references from every single project file (.csproj for C# projects):

... <SccProjectName>SAK</SccProjectName> <SccLocalPath>SAK</SccLocalPath> <SccAuxPath>SAK</SccAuxPath> <SccProvider>SAK</SccProvider> ... 
like image 66
Filburt Avatar answered Sep 21 '22 11:09

Filburt