Visual Studio 2005, how to get where project are used in a solution?

吃可爱长大的小学妹 提交于 2019-12-23 21:26:29

问题


I have a solution with other 70 projects into it. My question is : How can I know where the project is used? I do not want to open all those 70 projects to verify the References one by one. How can I see which project use one project in particular?

Edit I do not want to do 1 by 1 search in XML or in the Reference in VS. I would like a quick way to do it.


回答1:


There's a pretty cool codeplex project that creates dependecy visualizations that I've used before. Although, with 70 projects, you probably won't be able to read it very well unless you only have a few dependencies per project.

Anyway, it's still worth checking out-- you could probably even repurpose some of the source code to just output the depenecies to a list.

It at Dependecy Visualizer Codeplex Project




回答2:


You could resort to using the Search feature in Windows itself.

Each of the projects has a file called library_name.csproj.FileListAbsolute.txt.

A quick windows search for the DLL I was looking for with *FileListAbsolute.txt as the filter yielded the results I wanted.

The FileListAbsolute.txt files list the DLLs and such for the particular projects. I did this for VS 2008, but I would guess it might be available for VS 2005 too.




回答3:


The project files are in XML, so writing something to parse them should be no big deal. If you just want to find which projects reference particular other projects, "grep" would probably work well enough.




回答4:


You could even use the search feature of Studio itself, if you are looking for a particular project. Search just the xml project files for that particular project. If you're trying to map out everything, this wouldn't work so well.




回答5:


Visual Ndepend is a tool that I am trying at this moment and look promising with my original question.



来源:https://stackoverflow.com/questions/160179/visual-studio-2005-how-to-get-where-project-are-used-in-a-solution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!