Visual Studio 2013 和 TFS - 所有排除的更改都会自动包含回来 [英] Visual Studio 2013 and TFS - All excluded changes being included back automatically
问题描述
我在 Visual Studio 2013 中很好地使用了 TFS.但是,最近我遇到了一个烦人的问题(错误?).
I was using TFS fine with Visual Studio 2013. However, recently I have had an annoying issue (bug?).
我有一堆已排除的待处理更改,我不想提交但我想保留在本地(糟糕的 DEV 环境;不要问).我的问题是,每次我重新打开 VS 2013 时,所有排除的更改都会回到包含的更改中,我必须手动重新排除所有我不想提交的内容.
I have a bunch of excluded pending changes that I do not want to commit but that I want to keep locally (bad DEV environment; don't ask). My issue is that every time I re-open VS 2013, all excluded changes are back into the included changes and I have to manually re-exclude all the stuff I do not want to be committed.
有谁知道是什么导致 VS 2013 如此混乱?
Does anyone know what is causing VS 2013 to be such a mess?
[这个问题是对 VS2015 的类似 StackOverflow 问题的改编(Visual Studio 2015 和 TFS - 所有排除的更改都会自动包含回来),但特定于 VS2013,它可能会以不同的方式解决.]
[This question is an adaptation of a similar StackOverflow question for VS2015 (Visual Studio 2015 and TFS - All excluded changes being included back automatically), but being specific to VS2013 it can potentially be solved differently.]
推荐答案
我修复了它.我所做的只是:
I fixed it. All I did was:
- 确保我的所有预期更改都被搁置
- 撤消所有挂起的更改
- 关闭 Visual Studio
- 在以下位置清除 TFS 缓存*C:\Users\Username\AppData\Local\Microsoft\Team Foundation\5.0\Cache(其中用户名是您的 Windows 登录用户名).缓存包括存储在所述文件夹中的所有文件;只需删除它们!
- 重新打开 Visual Studio
- 将我之前的更改搁置回我的工作区
瞧!我的已排除更改列表中不再显示无关文件!
Voila! No more extraneous files showing up in my Excluded Changes list!
这篇关于Visual Studio 2013 和 TFS - 所有排除的更改都会自动包含回来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!