score:0

for local workspace, you should use .tfignore file to ignore files. such as

# ignore the nuget packages folder in the root of the repository.
# if needed, prefix 'packages' with additional folder names if it's 
# not in the same folder as .tfignore.
packages

# include package target files which may be required for msbuild,
# again prefixing the folder name as needed.
!packages/*.targets

as for how to generate this file, please refer my answer in this question: visual studio 2015 tfs .tfignore file

note: this .tfignore file will not affect with those files already in source control.

manually delete those files while committing the changes. then make sure your .tfignore files has checked in source control. next time when those files auto generated will be exclude by source control in the pending changes.


Related Query

More Query from same tag