1

Can anyone think of a way (perhaps using a PowerShell script or similar) where I can look for *.cs files that are on disk in the folder structure, but aren't included in a project file?

This has come about gradually over time with merging in Subversion etc. I'm looking for a way to clean up after myself, basically. :)

4

3 に答える 3

0

私の他の投稿の PowerShell スクリプトがこれを行います。スクリプトは、プロジェクト ファイルからインクルード ファイルのリストを取得し、それをディスク上のファイルと比較します。ディスク上にあるがプロジェクトには含まれていない一連のファイルを取得します。それらを削除するか、TFS で削除として保留することができます。

スクリプトはこちら: https://stackoverflow.com/a/23420956/846428

于 2014-05-02T11:59:30.363 に答える