修复本地 Visual Studio TFS 工作区映射 [英] Repair Local Visual Studio TFS Workspace Mapping

查看:40
本文介绍了修复本地 Visual Studio TFS 工作区映射的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设法破坏了我的本地 Visual Studio Team Foundation Server 工作区映射.Visual Studio 可以成功连接到 TFS,我可以管理 TFS 服务器连接.但是,我无法打开 Source Control Explorer 或 Workspaces/Manage Workspaces 对话框.两个窗口都失败并显示以下消息:错误意外的文件结尾.".在我的本地机器上,我也无法从 tf.exe 命令行获取有关我的工作区的任何信息,该命令行失败并显示相同的错误消息文件意外结束."

I have managed to corrupt my local Visual Studio Team Foundation Server workspace mappings. Visual Studio can successfully connect to TFS and I can manage the TFS Server connections. However, I cannot open Source Control Explorer or the Workspaces/Manage Workspaces dialogue. Both windows fail with the following message: "Error Unexpected end of file.". From my local machine I also cannot get any information about my workspaces from the tf.exe command line which fails with the same error message "Unexpected end of file."

我想指出,TFS/数据库仍然正确映射了我的工作区,因为我可以从另一台机器成功检索有关它们的信息.

I would like to note that TFS/database still has my workspaces mapped correctly since I can successfully retrieve information about them from a different machine.

我想修复或删除 Visual Studio 用于映射工作区的任何本地文件.有谁知道这些信息存储在哪里?

I would like to repair or remove whatever local file Visual Studio is using to map the workspaces. Does anyone know where this information is stored?

推荐答案

我通过删除位于以下位置的缓存文件夹解决了 Visual Studio 无法打开源代码管理资源管理器和工作区/管理工作区对话框的问题:

I've fixed my issue where Visual Studio was unable to open Source Control Explorer and Workspaces/Manage Workspaces dialogue by deleting the cache folder located here at:

%localappdata%MicrosoftTeam Foundation5.0Cache

%localappdata%MicrosoftTeam Foundation5.0Cache

删除此文件夹后,重新打开 Visual Studio 即可连接到源代码管理资源管理器,我可以再次从 IDE 管理我的工作区.(Visual Studio 启动后在同一位置新建了一个缓存文件夹)

Once this folder was deleted reopening Visual Studio was able to connect to Source Control Explorer and I can once again manage my workspaces from the IDE. (Visual Studio created a new cache folder in the same location after starting)

这篇关于修复本地 Visual Studio TFS 工作区映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆