Reputation: 19933
I have a .tfIgnore file like below whihc is already checked-in
\xx.Phoenix.Web\bower_components
\xx.Phoenix.Web\node_modules
*.autogen.cs
I would expect that everyfile which is match with .autogen.cs
be ignored.
But the problem is when files are generated by t4 templates, file are shown in pending changes, see below picture, xx.autogen.cs
is recognized as add
even I tried below but still not working
Phoenix\Domain\Entities\*.autogen.cs
and
\Phoenix\Domain\Entities\*.autogen.cs
We are using Vs2013 + Tfs2017
Upvotes: 13
Views: 12386
Reputation: 51183
First, please make sure your .tfignore
file created without any problem. This file does not have any suffix. Details of how to take a look at my reply in this question.
Also check if the files already in source control. If they are, .tfignore
won't apply to them.
A way to solve the issue is updating your VS to VS2015Update 3. The .tfignore should be working correctly. You could give a try with this version which have some improvements with tfignore.
More ways for handling the issue you can refer this blog from GitHub: Things in ".tfignore" still are shown in pending changes
Upvotes: 9
Reputation: 345
Go to Source Control Explorer and delete the folder or file which you want to ignore.
Upvotes: 11