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

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

问题描述

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

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

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

解决方案

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

%localappdata%\ Microsoft \ Team Foundation \ 5.0 \ Cache

删除此文件夹后,重新打开Visual Studio即可连接到Source Control Explorer,并且我可以再次从IDE管理我的工作区. (启动后,Visual Studio在相同的位置创建了一个新的缓存文件夹)

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."

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.

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?

解决方案

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%\Microsoft\Team Foundation\5.0\Cache

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天全站免登陆