Cannot ignore files in Visual Studio 2012 using .tfignore file

I had problems ignoring files on VS 2012, and I was wondering if anyone could help. Essentially, I am trying to ignore the Web.config file from the project in the solution.

I know about the option to “Exclude” a file, but I wanted something to be a little more reliable, since I really don't like how VS re-includes files when I right-click on a solution file and click on “Check In”.

Here is what I have tried so far:

  • Made a change to Web.config
  • Team Explorer tab → Excluded changes → click on the Detected link
  • Right-click the file → “Ignore this local element” to create the .tfignore * file
  • Open the .tfignore file and add "* .config". Saved.
  • Reopened VS
  • Open Team Explorer tab again → Pending changes
  • Web.config is still listed in the Included Changes list!

Visual Studio seems to completely ignore my .tfignore file. Anyone have any ideas / workarounds? Greetings.

+4
source share
1 answer

All Articles