Visual Studio macro: Find files that aren't included in the project?

后端 未结 4 1975
情深已故
情深已故 2020-12-03 09:00

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

4条回答
  •  醉酒成梦
    2020-12-03 09:30

    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

提交回复
热议问题