In Visual Studio 2010 I have a large solution that contains number of .cs files that are no longer used (not referenced in .csproj), but still present in code repository (Cl
The PowerShell script in my other post will get you 95% of the way. It is geared around TFS but it should be easy to modify for your purposes. 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 run some other command against that set of files.
https://stackoverflow.com/a/23420956/846428