Exclude files from TFS via project file
file, project, tfs
Solution
There are several levels of excluding files in TFS:
- Manually by excluding a file or folder on the check-in dialog.
- Manually by excluding a file or folder on the `Add items to Folder` dialog.
On the `Add items to Folder` dialog > `Automatically exclude from source control`: Note: the default items can be modified using the registry.
On the team project source control level using a check-in policy.
- On the source control permissions level: `Source Control` > Mark a folder > `Security` > Deny Check-In permission
- On the workspace level by cloaking.
Problem
I am searching for a possibility to exclude some files of my generated VS project file from TFS. I know that it is possibly afterwards with the .vspscc file. But what i want is, that i can tell the VS project file, that some of it's files are not allowed to get added to TFS, before I add the project to TFS.