1

I have followed all of the guidance around using tfignore files and VS still insists on checking in contents from these folders. Is there some other way to go about this? I'm getting really tired of excluding these things before every checkin.

Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536
RobVious
  • 12,685
  • 25
  • 99
  • 181

1 Answers1

1

Still use .tfignore file.

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 also use a temporary quick fix for this 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 details, please see my and Hoppe's answer in vs2015 keeps adding project.lock.json to tfs


Another way through source control.

You could try to remove the directory from source control(not delete), check in; and then delete the files/dir from Source Control Explorer and check-in in Source Control Explorer. Now TFS doesn't know about the files and won't compare them because they are not source controlled . Or you can also give a try with Nate Kerkhofs's answer in How do I permanently exclude the bin and obj folders from TFS 2012 checkin?

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