I\'d like to write a macro to crawl through the files in my project directory and find files that aren\'t included in the project.
In playing around with the DTE ob
I'd go with PowerShell. The PowerShell script in my other post will do this for you. The script will get the list of included files from the project file and compare that against the files on disk. You will get the set of files that are on disk but not included in the project. You can either delete them or pend them as deletes for TFS.
https://stackoverflow.com/a/23420956/846428