TFS file must remain locked

I have third-party DLL servers registered in TFS. Our machines have been renamed, and now TFS believes that they are checked by me for editing on another machine.

I tried tf lock /lock:none contrib64/* /workspace:oldmachine;myusername , but getting an error

TF10152: The item $/XXX/YYYY/contrib64/third_party.dll must remain locked because its file type prevents multiple check-outs.

1, Is there any way around this?
2, Is TFS really bad or is it just me?
3, Is the goal of TFS to make us nostalgic for VSS?

ps This is a hosted version, so I can’t just get the administrator to fix it.

+8
tfs
source share
2 answers

Unblocking will not work on these files because they are binary, since binary files cannot be combined, they must be locked if they are extracted.

As a machine, the workspace no longer exists (the machine has been renamed), it is best to delete the workspace.

from the command line of Visual Studio

tf workspace /delete oldmachine;myusername /collection:http://*tfsserver*:8080/tfs/*collection*

This will delete the workspace and cancel all pending changes.

+10
source share

Files with the .dll extension, as well as other extensions, such as .exe, .doc, .docx, etc., are automatically blocked because (as mentioned) they cannot be combined here.

If you want to disable automatic blocking and allow these files to go through closed registration, follow these steps:

  • Log in to your build server.
  • Open a visual studio.
  • In the command explorer, enter your team project.
  • Go to Settings.
  • In the Collective Projects Collection section, select Source Management.
  • Set the Merge Files property to Disabled for any file extension that you do not want to automatically block.

Link: https://blogs.msdn.microsoft.com/phkelley/2008/11/12/everything-you-ever-wanted-to-know-about-locks/

It worked for me.

+1
source share

All Articles