Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What the actual file name of .tfignore file?

Tags:

tfs

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?

like image 665
AxD Avatar asked May 06 '15 08:05

AxD


People also ask

What is .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.

How do I create a Tfignore file?

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.


2 Answers

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.

like image 144
Davy Jones Avatar answered Sep 19 '22 10:09

Davy Jones


  1. Open a command prompt.
  2. CD to the directory you want to create the .tfignore file in (i.e. the solution root)
  3. Type "echo > .tfignore". This will create a blank file you can then edit.
like image 39
Heather Avatar answered Sep 20 '22 10:09

Heather