I work with a large code base with a huge number of projects, each of which has a small (and in some cases a huge) number of links to others. Over time, significant refactoring has been done on this code base, and as a result there are many assemblies referenced by some projects just because they contained a class that has since been moved elsewhere; that kind of thing.
ReSharper has an integrated tool integrated into the IDE that allows users to find the code that actually uses this link for a given project, however, to turn this into a solution, we would have to force a person to right-click on each link in each project, and then actually check the absence of customs, and then remove them, which is not only a lengthy process, but also borders on torture.
I would like to be able to automate this process so that we simply run it and remove unnecessary links; we could then integrate it into some kind of regular process so that missed errors are caught.
Two options that I was thinking about would be: A) Automate ReSharper using Powershell, if possible, or B) perhaps the Visual Studio 2010 Architecture dependency diagrams can handle this and, possibly, the script, if I'm lucky.
My questions are as follows:
- Could ReSharper be a script for something like that?
- Does the VS2010 architecture provide the removal of unused links in any way with batch / automated access?
source
share