在Visual Studio中清理工作区

问题描述 投票:0回答:1

我有一个我在本地工作的项目,它使用Visual Studio Team Services(VSTS)作为其存储库。

我在本地和VSTS都删除了该项目。

现在我想在VSTS上添加一个新项目到一个新的新存储库,但我一直收到这个错误:enter image description here

奇怪的是我删除了指向该项目的工作区。显然,某处有一个参考。我该如何清理它?

visual-studio azure-devops
1个回答
0
投票

您可以尝试以下选项:

Option 1: check if the workspace you are working contains the TFVC repo which you deleted

在Source Control Explorer中 - > manage workspaces - >编辑您正在使用的工作区 - >如果它包含已删除的TFVC repo - >删除相关的工作文件夹 - >然后再次检查更改。

enter image description here

enter image description here

Option 2: check the pending changes and undo the changes which are out of the new TFVC repo map directory

在待定更改中 - >检查是否包含新TFVC回购映射目录中的文件/文件夹 - >如果是 - >撤消超出映射目录的更改 - >再次签入更改。

enter image description here


要使用TFVC repo映射新工作区,您可以按照以下步骤操作:

源控制资源管理器 - >工作区 - >添加 - >如将工作空间命名为阶段 - >选择TFVC存储库作为源控制文件夹 - >指定新目录(不存在或为空)作为本地文件夹 - >确定 - >单击是的,修改了工作区。

enter image description here enter image description here

现在将工作区切换为新创建的阶段,然后进行更改和签入,现在应该成功。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.