我正在使用TFVC。
我有两个文件显示项目资源管理器中的[Ignored]
标记。右键单击它们,unignore
显示为灰色。
这些文件是来自Jasper报告框架的.jasper文件,位于我的一个模块中的/src/main/resources
。该文件夹中没有其他文件存在此问题。
我有一个.tfignore文件,但它没有任何匹配这些文件的内容:
target
.settings
.project
.classpath
\<redacted module name>\application.properties
\<redacted module name>\.springBeans
\<redacted module name>\app
\<redacted module name>\tree
\tree
这只适用于我的环境 - 我的队友没有看到它,所以我知道这不是TFS服务器配置问题。
答案 0 :(得分:0)
首先在本地计算机的映射文件夹中,仔细检查本地.tfignore
文件。因为.tfignore
文件的效果是递归的。检查子文件夹中是否有.tfignore
个文件,以覆盖父文件夹中.tfignore
文件的效果。
你也可以尝试显式声明不要忽略.tfignore
中的文件,然后保存它并重启日食。
# Do not ignore .jasper files in this folder nor in any of its sub-folders
!*.jasper
另一种可能性与缓存问题有关,尝试在团队资源管理器中清除缓存信息(首先检入或备份本地更改)。
%USERPROFILE%\Local Settings\Application Data\\Microsoft\Team Explorer
有关缓存信息的更多详细信息,请参阅此thread。