How to remove TFS connection from solution? I was asking this question to myself. We are migrating from TFS to Tortoise, and it is taking some time for this to happen.
And meanwhile, whenever I am opening solutions to do edit on the source codes I have copied in my laptop, I get the notification:
Team Foundation Server Version Control
The solution you are opening is bound to source control on the following Team Foundation Server: [TFS SERVER NAME]. Would you like to contact this server to try to enable source control integration?
I would click on No, do one with the code edit, debug, save, and done.
Or maybe not.
You see, the next time I open the source code, I am greeted with this question, and the source code won't load until I click on No. And again on the next edit, and so on and so forth.
So I searched the web for how to do this permanently.
Pretty quickly came one suggestion with 2 steps:
1. Go to your solution's folder, search and destroy (read: delete) all files with *.vssscc and *.vspscc extensions.
2. Open your solution's .sln file in Notepad++ (or in a much more basic text editor such as Notepad) and remove the GlobalSection(TeamFoundationVersionControl) section.
Well, I'm in a hurry and most of the time I am even lazy to do these just 2 steps. And besides, this method requires some other steps not listed, but feel free to search for more info if you want to go this way.
Fortunately, I found another method that I can say is a one-time deal and it is done. Final.
Here's how it goes, 3 steps:
1. Open the solution, then when the prompt comes, click on No and make no mistake, click on No.
2. Once fully loaded, click on File, then Source Control, then Advanced, then Change Source Control.
3. You will be prompted with the following question, so affirmatively click on Yes.
---------------------------
Microsoft Visual Studio
---------------------------
Change Source Control - [MY_SOLUTION_NAME].sln
The current solution is associated with source control but is offline.
Would you like to completely disassociate the solution from source control?
---------------------------
Yes No Help
---------------------------
How to remove TFS connection from a solution? 2 methods I have shown, with the 2nd method I have tried to be sure-fire. And that's how I am no longer bothered with the incessant "Would you like to contact this server to try to enable source control integration?" question.
If you are also bothered and you want it to stop, for good, try it. I did, and I am very much contented and now happily coding.
Till then!