3

I followed the instructions in this Microsoft article, but they don't work.

I created .tfignore file, put it in the root, here its content (I want to exclude these folders).

enter image description here

When I open Team Explorer - Pending Changes, I see these folders are included in Pending Changes

enter image description here

user229044
  • 232,980
  • 40
  • 330
  • 338
monstro
  • 6,254
  • 10
  • 65
  • 111
  • 2
    Are you using a server workspace? `.tfignore` only works with local workspaces. Also, are the files already in source control? If they are, `.tfignore` won't apply to them. – Daniel Mann Aug 26 '16 at 15:34
  • Daniel, no, local. Yes, they are in TFS. I dont want to check them in every time I compile. – monstro Aug 26 '16 at 15:47
  • 2
    Possible duplicate of [tfignore not working in VS 2013](http://stackoverflow.com/questions/25207577/tfignore-not-working-in-vs-2013) – kayess Aug 26 '16 at 19:18
  • What's the type of your project? Asp.Net Core? – Eddie Chen - MSFT Sep 02 '16 at 08:39

1 Answers1

2

A way to solve the issue is updating your VS to VS2015Update 3. The .tfignore should be indeed working correctly.

If those files already in the pending changes before you add your .tfigonre file in source control. You can try below solution:

If the changes are "still" in pending changes, first create a backup copy, then make an Undo on them. Close VS, restore the backup copies and then it should work.

Or you can try to use a temporary quick fix for the problem: Add an $ char into the bower_components folder name in the .bowerrc. TFS does not allow the $ character in the file name, so it can't be added to source control.

More detail ways you can refer this blog from GitHub: Things in ".tfignore" still are shown in pending changes

PatrickLu-MSFT
  • 49,478
  • 5
  • 35
  • 62