简体   繁体   中英

C# - Separate project into 2 seperate projects by dependencies

I have project A and project B. Project A use project B dll.

I want to get all the dependencies of project A out from project B and separate them into 2 different projects, project B and project C.

I want project A to use only project C.

The dependency been declared by class's(in properties, interfaces, methods body , interfaces, methods parameters, base class, attribute etc.).

Is there some way or tool to do it?
If not is there some known methodology for this mission?

After investigation I found out that there is not such a tool. In the end I implement a tool that does it by set a dictionary of dependencies for each type(including class, enum, methods interface, method body, properties, class members, attribute etc.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM