Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"There appears to be a discrepancy between the solution's source control ...."

We get this error in Visual Studio 2005 and TFS very often.

Can anyone help us pinpoint the cause for this message?

The full message is:

There appears to be a discrepancy between the solution's source control information about some project(s) and the information in the project file(s).

To resolve this discrepancy it will be necessary to check out the project file(s) and update them. If the check out fails, however, and the solution is closed without saving, you will see this warning again the next time you open the solution.

Clicking OK eventually lead to a checkout box where it wants to check out a whole list of project files. However, the "Change source control" window doesn't show anything wrong, and saving everything and just checking it back in just ends up as "Nothing was changed, undoing everything" type of message.

Edit: You're right, @Adam, we have converted from VSS, but we went through such a procedure to cleanup the bindings when we did this a while ago and everything was peachy. The error has started cropping up lately.

like image 463
Lasse V. Karlsen Avatar asked Oct 17 '08 11:10

Lasse V. Karlsen


People also ask

How do I change my Source Control repository?

Open the menu option File > Source Control > Change Source Control.

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.

How do you place a solution under Source Control?

Select solution or project that you want to add to source control. Go to "File" -> "Source Control" -> "Advanced" -> "Change source control" (if you look at Microsoft website, you will see that there is not "Advanced" menu in their example, it may be related to VS version or menu settings). Click "Bind" on each row.


1 Answers

Sounds like you you moved the project from VSS to TFS, and the original solution file is still bound to VSS - you need to rebind it to TFS.

Here are the steps you'll need to do to fix this. I'd bring an excerpt here, but it appears to depend on several factors and isn't trivial.

Alternately, here's a thread that touches on project binding/unbinding which might apply if the above doesn't.

-Adam

like image 134
Adam Davis Avatar answered Nov 16 '22 02:11

Adam Davis