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

4
  • 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. Commented Aug 26, 2016 at 15:34
  • Daniel, no, local. Yes, they are in TFS. I dont want to check them in every time I compile. Commented Aug 26, 2016 at 15:47
  • 2
    Possible duplicate of tfignore not working in VS 2013 Commented Aug 26, 2016 at 19:18
  • What's the type of your project? Asp.Net Core? Commented Sep 2, 2016 at 8:39

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

1 Comment

I cant update VS, we are in a corporate environment here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.