This error when doing our first checkin is preventing us from adding the solution to TFS. Not sure how to resolve it.
2 Answers
This error generally means that there is a pending change to a file that does not exist on disk.
So for whatever reason, your VS has told TFS that is is making a change to the file [ProjectName].vsdmi
. Subsequently, that file has been deleted from the disk. So when VS goes to do the checkin, it tries to check in [ProjectName].vsdmi
but it doesn't exist on the disk. So you get the error.
Either
- Undo the pending change and check in again
- Find out whether you actually need that file (a vsdmi hile is related to the VS unit tests projects) and try to recover it.
-
being a "frist" check in of the project, how does it know about a pending change? Commented Apr 9, 2013 at 16:11
-
1@GeorgeD. Well there will be an Add operation won't there. Commented Apr 9, 2013 at 17:33
-
I was just not sure how it knew it was pending change when it was the first time I was adding the project. Commented Apr 9, 2013 at 17:48
I solved this a different way for a Class.cs file. The file existed on disk, TFS/VS could not find it for some reason.
- Copied the file out of VS (to Notepad)
- Deleted the file in Visual Studio
- Re-created the file in VS by right clicking add->new.
- Pasted back in and saved.
This worked.