【问题标题】:File is marked as Ignored by TFS everywhere plugin, but in fact it is not文件被 TFS 无处不在的插件标记为 Ignored,但实际上它不是
【发布时间】:2012-12-11 10:40:41
【问题描述】:

首次将文件添加到 TFS2012 时,其中一些建议被忽略(如 .dll、exe 等)

事实上,其中一些建议忽略我在 TFS 中需要的文件。所以我已经明确地将它们从被忽略的列表中删除,并将它们添加到 TFS。

现在在 Visual Studio 中,我可以正常处理这些文件,但不能在 Eclipse 中使用!在 Eclipse 中,它们仍被标记为“已忽略”,并且所有团队功能都被禁用! :(

有没有办法解决这个问题??

附:当然这些文件不在 .tfignore 中。

添加:

忽略似乎是基于文件扩展名 (.dll) 和文件夹名称 (\bin)。

【问题讨论】:

  • 您的.tpignore.tfignore 文件是什么样的?有时,.tpignore 中的错误正则表达式会造成严重破坏。
  • @汤姆森。我的磁盘上根本没有 .tpignore 文件,并且 .tfignore 没有特殊条目。只有少数文件夹(如 \jre、\doc 等)被忽略。
  • 所以你没有告诉.tfignore不要忽略 DLL?

标签: eclipse team-explorer team-explorer-everywhere


【解决方案1】:

Team Foundation Server 本地工作区中的某些文件(例如 DLLs)是 ignored by default

为了覆盖默认忽略状态,您需要设置.tfignore 行,指定不应忽略DLLs。来自documentation

# Do not ignore .dll files in this folder nor in any of its sub-folders
!*.dll

【讨论】:

  • 文件名为.tpignore,而不是.tfignore
  • @HenriqueSousa:不是,它们是两个不同的文件。 .tfignore 是 TFS-2012 的新忽略文件,用于本地工作区,由 Team Explorer Everywhere 和 Visual Studio 客户端共享。 .tpignore 仅供 Team Explorer Everywhere 使用。在这种情况下,我说的是.tfignore
  • 感谢您的澄清,确实我们仍然使用 TFS 2008 和 Team Explorer Everywhere,.tpginore 文件满足了我们在 Eclipse 中的需求。
猜你喜欢
  • 2012-02-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多