9

I have multiple solutions that were previously mapped to a hosted TFS. Their local mapping was defined as well and all the source code was up-to-date locally. I have since discontinued my TFS subscription and started using visualstudio.com as my TFS server.

I went into one of the solutions, deleted the *.vssscc files from the solution and the *.vspscc files from each nested project. When I open the solution in VS 2013, the output window gives me a message saying the the original TFS (unsubscribed now) is not available and that the solution is open offline.

As a result, when I choose the "Change source Control" option, it first asks me to log in to the old TFS whose credentials are no longer valid.

Furthermore, it tells me that the local directory I am trying to map to the new TFS is already mapped to the old TFS. How can I remove this mapping without having access to the old TFS?

4

3 回答 3

10

如果您处于离线状态,不确定这是否有效,但您可以通过打开该Manage Workspaces区域来删除映射Source Control Explorer(单击 Workspace 右侧下拉列表的 ... 选项:)

管理工作区->选择您的工作区->编辑->删除或更改您的映射。

于 2016-02-01T13:49:33.843 回答
3

使用命令行删除映射可能是最简单的

tf workspaces /remove workspacename;owner /collection:http://urlto.old:8080/tfs/ProjectCollection

删除当前文件夹的旧工作区配置并将文件夹映射到新订阅后,Visual Studio 应提示您自动将解决方案绑定更新到新服务器。

这不会从服务器中删除您的工作区(它会跟踪工作区),但是由于您不再有权访问它,因此应该足以让您的客户端忘记文件夹已映射。

于 2014-10-11T16:18:45.777 回答
0

当旧的 TFS 服务器可用时,此处的答案有效。我的不是但尚未从 VS 的服务器列表中删除。删除该条目使我可以将解决方案与映射一起从源代码管理中完全删除,并将其添加到另一个源代码管理服务器。

于 2016-02-12T12:49:16.383 回答