需要C#源码关系图
我最近接手了一个用 Visual Studio 2008、C# 编写的 Web 应用程序项目。前一个人的文档很少。我知道它使用母版页,起始页是default.aspx。尽管仍然可以手动跟踪代码(通过大量的时间和辛苦劳动等等),但我相信我不是第一个面临此类问题的人,并且必须有一种更有效的方法来概述整个解决方案文件如何相互关联。
我需要是一个高级图表,概述了哪个页面/控件正在调用另一个页面/控件等......以及它们之间的相关性非常有帮助。
有人知道这是怎么做到的吗?
谢谢你!
顺便说一句,我以前的经验主要是 Visual Foxpro...
编辑:
谢谢 Aim Kai、Fernando 和 Daniel Brückner 的领导。我已经下载并安装了 NDepend 和 Reflector 的试用版。对它们进行了测试,必须说它们都是优秀的产品。 NDepend 似乎是功能更强大的产品,并且可能物有所值。无论如何,在决定之前我会再尝试一下。再次感谢并欢呼!
I recently took over a web application project written in Visual Studio 2008, C#. There was very little documentation from the previous guy. I know it uses master pages and the starting page is default.aspx. Although it may still be possible to trace the code manually (through LOTS of time and hard labor and still some more), I believe I'm not the first person facing such problem and there must be a more efficient method to getting an overview of how the entire solution files are related to each other.
What I need is a high level diagram that gives an overview of which page/control is calling another page/control, etc... and how they're all related will be very helpful.
Anyone know how this is done?
Thank you!
Btw, my previous experience was mainly Visual Foxpro...
Edit:
Thank you Aim Kai, Fernando, and Daniel Brückner for the lead. I've download and installed the trial for both NDepend and Reflector. Tested them and must say they're both excellent products. NDepend seems like the more powerful product, and may be worth the money. Anyway, I'll play around with both some more before deciding. Thanks again and cheers!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
NDepend 是一个非常好的工具.. 这也可能有帮助.. .Net Reflector由 Red gateway 提供,带有以下一些插件...
http://www.codeplex.com/reflectoraddins
NDepend is a very good tool.. This may help as well.. .Net Reflector by Red gate with some of the following plugins...
http://www.codeplex.com/reflectoraddins
您可以尝试一些Reflector的插件,例如SequenceViz 和 自动图表。请在此处查看完整列表。
You could try some Reflector's add ins, like SequenceViz and AutoDiagrammer. See the full list here.
NDepend 来救援。但它的目标是大型代码库并且需要花费一些钱。
NDepend comes to the rescue. But it targets large code bases and costs some money.
如果您可以获取该项目的副本,并将其加载到 Visual Studio 2010 上,则方法级别上有一个“生成序列图”选项 - 您可以在您所在的方法下方看到调用的调用树。
If you can take a copy of the project, and load it up on Visual Studio 2010, there is a "Generate Sequence Diagram" option at the method level -- you can see the call tree for calls below the method that you are on.