简体   繁体   中英

Is there a command in Visual Studio to get the projects dependent on a project within a solution?

Let us say I have 20 projects in a solution, and one of them is named Foo .

I would like to get a list of projects that have Foo as their reference.

Until now, I have been using a small C# program I have written for that which loads every assembly in the solution and reads from its manifest ( Assembly.GetReferencedAssemblies ).

However, it is tedious. I am wondering if there's a Visual Studio command to display this list.

I am using Visual Studio Professional 2013 but I'd be happy to know if any version of Visual Studio has that command, and I'll switch to using that one.

A note for the casual reader

I am not looking for a way to find a project's dependencies, ie a list of projects on which the current project is dependent. For that, there's the Build Dependencies context-menu command.

From the looks of it, the Dependency Graph feature might suit your needs. You need VS Ultimate Edition, though (any version from 2010 to 2015).

I'm not aware of any other feature that comes close to doing what you're asking.

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