I am having an issue where a .cs class in my entity framework (edmx) is checked out in another workspace, but doesn't exist in TFS:
When I attempt to add the file to TFS I get:
TF10151: Cannot lock item $/[...]/CLP.cs for check-out. The item $/[...]/CLP.cs is checked out by [User] in workspace [Workspace].
The checkout does not show in TFS Sidekick Status and I have even tried the following command using Developer Command Prompt but I get 'It is not currently locked in your workspace':
tf undo "$/[...]/clp.cs" /collection:[My Collection] /workspace:[Workspace];[User]
Any idea? The workspace in question goes back a year or so for somebody who no longer works for the company. Seems like it's a ghost file that TFS has some sort of reference to but doesn't actually exist? Perhaps it's getting confused with the edmx file?
Any fix or work around would be much appreciated as it's stopping us from using automated builds.
Thanks