I always read that I need to create a .tfignore
file for TFS to exclude my selection of files.
But what's the actual name of the file? If I'm trying to rename an empty file to .tfignore
, File Explorer tells me that the file is required to have a file name, not just an extension.
So what's a valid example for a valid .tfignore
file?
tfignore files that should specify which project source files sould be ignore by the source control. Since the latest update, the source control (Azure DevOps) does not handle this file and does not ignore the files that it needs to exclude from source control. Visual Studiovisual studio 2019 version 16.4windows 10.0.
If you have a local workspace, you can add a new file and in the bottom of the pending changes window you have the changes you can 'promote'. In that window, you can right click the files to automatically add them to a . tfignore file that will be created for you.
I was just struggling with the same issue. I found that if you create the file with the name .tfignore.
(note the . at the end it recognizes that before the last "." is the filename. When it is created/renamed, the last "." will go away.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With