It seems we have a lot of unreferenced files pointing to deleted files in our projects (under a solution in VS2008 and VS2012).
For example, we stopped using a bitmap; we removed the file on disk, remove the resource ID and entry in the RC file, but we forgot to remove the entry in the solution.
The entry is there and does nothing.
It is worse for header files; it seems in some instances, in VS2012 the project will try to rebuild if there is such an unreferenced file.
So, question:
Is there a way to clean up those unreferenced files in Visual Studio ?
Could it be done with a macro ? (i.e. loop over the files in the solution/project, try to open them, and if cannot, remove from solution/project )
Thanks.
Max