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.
Open the menu option File > Source Control > Change Source Control.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With