File lost from TFS
I've got a problem with our TFS server (don't know the exact version unfortunately, but it's definitely something old).
I've checked in a changeset where among others a.cs
is changed. Now, when looking in source cont开发者_如何转开发rol explorer a.cs
is gone, as well as b.cs
which wasn't in the changeset. Looking at a log the last commit is my changeset where a.cs
is marked as "edit" - no deletion shown.
From the log details it is possible to select "view" on a.cs
and get the up-to-date file contents, but I can't understand why it is gone from source control explorer or what to do about it.
It's possible some one else deleted it.
From visual studio go to Tools | Options. Then pick Source Control | Visual Studio Team Foundation Server. Turn on "Show deleted items in the Source Control Explorer" and see if it shows up.
Solution I found for very similar problem:
Navigate to folder containing that file in "Source Control Explorer", right click on it, select "Compare", make sure all "View options" are checked. Than on file list you can find your missing file. In this menu, right click option has an "Add" option available. Now file is once again tracked and you can commit changes.
For me, the problem was when file was edited by T4 process (first deleted, than created), than committed without realizing something went wrong with file states in TFS.
精彩评论