I just downloaded a solution from a TFS server [tfsserver2].
The solution was originally developed and uploaded to [tfsserver]
[tfsserver] crashed. So this solution was then uploaded to tfsserver2.
I’m not the original developer, so I’m not sure how everything was setup. When I try to edit this solution, it keeps trying to connect to [tfsserver] even though I got the solution from [tfsserver2].
I tried looking for references (ctrl+shift+f) to tfsserver, but I couldn’t find anything.
I tried clearing the Visual Studio cache.
Any suggestions on how this solution even knows about a server that hasn’t existed for years?
Check out your solution file & open it with an editor.
You shoud find an entry like:
SccTeamFoundationServer =[tfsserver].Changing it to your new TFS should do the trick.
You could also do this with “File” > “Source Control” > “Change Source Control…”
Since we ‘re talking about VS2010, the SLN file follows the Format Version 11.00 of MS VStudio Solution File.
Within the
Globalpart of it, source control information is kept as aGlobalSection.For SCM Perforce this is headed as
GlobalSection(SourceCodeControl) = preSolution, for TFS it’s headed asGlobalSection(TeamFoundationVersionControl) = preSolution.You mention that when you select “Change Source Control” nothing happens. So, I would check out the SLN file, remove this section in a text editor, save & then load the solution in the IDE. It should then be possible to get where you ‘re headed, simply by right-clicking on the solution in Solution Explorer and selecting “Add Solution to Source Control…”.