How to ignore files in TFS

I would like to ignore all generated files from TFS. I am generating Product.Generated.cs from Classes.tt

I would like to ignore *. Generated. * and *. ignore; in tfs

in vs2010 I tried

right click on version control explorer -> add items to folder

Automatic exclusion from source control: Debug, Release, ClientBin; * PDB; *. OBJ, *. DLL, .. * Ex; * Res; .. * Resources ;. * Cache ;. * Others ;. * Tubing; * LCE; .. * XAP; * Formed *; ... * ignore;

but every time I save the Classes.tt file and create my XXX.Generated.cs files, it tries to add them to TFS

thanks

+4
source share
1 answer

One way is to put all the generated code in a subfolder and then “Cloak” in your workspace. This is not ideal, as you need to do this in every development workspace.

0
source

All Articles