I renamed a web project in VS2010 and checked in.
In Team explorer the csproj file was not renamed, hence my colleague got an unable to load exception. He fixed the path but now the project loads but on both our machines the lock icon next to the renamed web project isn't there anymore although it's constituent files still seem to be tracked via tfs. It seems the bindings have been corrupted for the csproj only.
We have tried
No other projects in the solution are affected.
Is there a fix for this that doesn't involve recreating the project and copying over. I don't want to lose all our edit history.
OK I managed to solve this. Thanks for the other responses, unfortunately I had actually edited the name through VS solution explorer. The fix however required some manual intervention.
I noticed that I had a pending change on the .sln .vssscc file. If i exited VS, undid the change and then reopened the solution the project in question briefly appeared to be picked up by TFS and then these two file appeared again in my pending changes list and it again disappeared.
For people who experience this in the future. The solution was.
Hope this helps someone. Curse be to TFS!
From your story I can assume that you rename the project from the windows explorer outside the Visual Studio and in this case the TFS will not feel with this change and make your problem. Always do any edit from Visual Studio.
To fix this you will need to rename the file to the old one with the same way you do in the first time and rename again in the Visual Studio, the good news that TFS 11 Beta will support changes outside the Visual Studio through introducing a new feature which is local workspace.