问题
I have a very large project with lots of files. I need to extract only a few classes into a separate DLL, but the problem is that the classes have many dependencies on other files. Trying to make it manually, I've already spent several hours, and still there are limitless errors related to missing files. Is there any solution to automate this process?
回答1:
I don't know of a tool that will automate the whole process, but you could use NDepend to help you.
Starting with the class that you want to extract, NDepend can generate a list telling you that class's dependencies, and the dependencies of those classes, and so on.
来源:https://stackoverflow.com/questions/4068944/tool-or-plugin-to-extract-class-and-all-of-its-dependencies-from-vs-project