tfs - 迁移后无法摆脱 TFS2018 中的工作区问题
问题描述
从 TFS2013 迁移到 TFS2018 后出现问题。这发生在我们系统的重大重建之后。我迁移了 TFS 数据库和软件,并且可以在 Web 浏览器中检查一切正常的东西。我删除了服务器上的所有工作区。
我的问题示例:我用 VS2019 打开了一个项目(WOL)并尝试连接到 TFS 服务器。我有一个建议的工作区目录:
C:\Users\Juergen.JLOEWNEREDV\Source\Workspaces\WOL
我试图将其更改为项目在其生命周期内已经存在的另一个本地目录:
D:\Visual Studio Projekte\WOL
(由于 TFS 服务器的离线时间较长,因此我现在要签入的项目有很多更改)在此尝试中,我收到以下消息:
The working folder
*D:\Visual Studio Projekte\WOL*
is already in use by the workspace JLOEWNER;Juergen Loewner on computer JLOEWNER.
我发现没有办法摆脱这个。
有谁能够帮我?
还有更多的项目等待签入。所以我需要一个通用的程序来解决这个问题。
解决方案
The error message is The working folder D:\Visual Studio Projekte\WOL is already in use by the workspace JLOEWNER;Juergen Loewner on computer JLOEWNER.
The variable D:\Visual Studio Projekte\WOL
stands for the blocked folder, JLOEWNER
for the workspace/machine name and Juergen
for the users id on Azure DevOps Server(TFS2018).
We could run the tf.exe cmd to delete Remote Workspace.
Steps:
Run Developer Command Prompt
with Administrator privileges from Visual Studio 2019 and login with your Azure DevOps credentials. If the Login dialog doesn’t show up, force it by executing:
tf.exe workspace
Get a list of all remote workspaces available in your DevOps Collection by running the command:
tf.exe workspaces /computer:* /owner:* /format:xml > c:\temp\workspaces.xml
Find the abandoned workspace in the list and note its name and ownerid for running the command:
tf workspace /delete {WORKSPACE.name};{WORKSPACE.ownerid}
We could check this blog for more details.
Or refer to this ticket to remove the workspace, then it should be work.
推荐阅读
- javascript - MemoryStream 与其他可能的参数一起响应吗?
- c# - 创建一个使用 Any 的表达式
- c++ - Unordered_Set 迭代器抛出奇怪的错误
- c++ - 如何知道哪个线程正在发出中断?C++
- reactjs - ReactJS 中的 useState 没有更新
- processmaker - 请求 ProcessMaker 4 安装文档
- c# - 在运行时更改 const 字段的值
- javascript - 如何在 Next.js 中将路径名从 _document 传递到 _app
- php - PHP xmllib XSD 验证命名空间错误:不期望 X,期望 X
- r - 如果在一个函数中我将获得正面的概率设置为 0.7,那么为什么在 100 次投掷后我得到 65 的结果?