Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(7)
您检查过 .NET 反射器吗?也有一个 diagram 插件..
列表 加载项
Have you checked out .NET reflector? Has a diagram plugin too..
List of Add-Ins
巧合的是,我的一位同事与一些 MS 人员就 Visual Studio 2010 Team Foundation Server 进行了一次会议。他们告诉他,它能够对你的程序集进行逆向工程并生成 UML 图。快速浏览一下 MSDN(链接文本)似乎部分证实了这一点。它没有说 UML,但它确认可以导出架构图,并且可以在编译时验证您的代码。但它显然还没有上市,而且我确信它的价格会很高。
Coincidentally enough a colleague of had a meeting with some MS guys regarding Visual Studio 2010 team foundation server. They told him that it has the ability to reverse engineer your assemblies and produce UML diagrams. A quick look on MSDN (link text) seems to partially confirm this. It doesn’t say UML but it confirms architectural diagrams can be derived and your code which can be validated against at compile time. But it’s obviously not available yet and I’m sure it will carry a hefty price tag.
Altova UModel
Altova UModel
Sparx 企业架构师非常好。我在工作中使用它。
Sparx enterprise architect is very good. I use it at my work.
NDepend 工具肯定是您正在寻找的C# 代码逆向工程。 NDepend 附带了一个依赖图以及一个依赖矩阵。借助免费试用版,您可以直接在代码上尝试 NDepend。由于一张图片胜过数千字,请参阅从此博客文章中提取的 NDepend 屏幕截图:交互式代码依赖关系图
替代文本 http://codebetter.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/patricksmacchia.Graph/InternalDependencyGraphSmall2.jpg
< img src="https://i.sstatic.net/SIrSQ.jpg" alt="alt text">
替代文本 http://codebetter.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/patricksmacchia.Graph/CycleGraphSmall2 .jpg
替代文本http://codebetter.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/patricksmacchia.CQLExport/Graph1.jpg
The NDepend tool is certainly what you are looking for C# code reverse engineering. NDepend comes with a dependency graph coupled with a dependency matrix. You can try NDepend straight on your code thanks to a Free Trial Edition. As a picture is worth a thousands words, see NDepend's screenshoots extracted from this blog post: Interactive Code Dependencies Graph
alt text http://codebetter.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/patricksmacchia.Graph/InternalDependenciesGraphSmall2.jpg
alt text http://codebetter.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/patricksmacchia.Graph/CycleGraphSmall2.jpg
alt text http://codebetter.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/patricksmacchia.CQLExport/Graph1.jpg
ILSpy 看起来很像 Reflector。
http://wiki.sharpdevelop.net/ILSpy.ashx
我已经用过很多次了,非常方便。
还有 dotPeek(Resharper 的创建者)
http://www.jetbrains.com/decompiler/index.html?topDP
它们都是免费的:D
ILSpy looks alot like Reflector.
http://wiki.sharpdevelop.net/ILSpy.ashx
I've used it many times and it's very handy.
There's also dotPeek(Creators of Resharper)
http://www.jetbrains.com/decompiler/index.html?topDP
They Are both free :D
Visual Studio 2010 Ultimate 支持 UML 类图以及序列图、组件图、用例图和活动图。它还支持从代码创建序列、依赖图和层图。关于您关于从代码生成 UML 图的问题,VS Architecture & 中有一个答复。建模工具论坛: 是吗可以将 C# 代码逆向工程为 UML 类图吗?
其他工具包括 Architecture Explorer,它可以让您浏览和探索您的解决方案。
有关详细信息,请参阅以下链接:
要下载 RC 版本,请访问:Microsoft Visual Studio 2010 Ultimate RC
要查看 RC 文档,请参阅 对应用程序进行建模。
要讨论这些工具,请访问 Visual Studio 2010 Architectural Discovery &建模工具论坛。
Visual Studio 2010 Ultimate supports UML class diagrams as well as sequence, component, use case, and activity diagrams. It also supports creating sequence, dependency graphs, and layer diagrams from code. Regarding your question about generating UML diagrams from code, there's a response here in the VS Architecture & Modeling tools forum: Is it possible to reverse engineer C# code into an UML Class Diagram?
Other tools include Architecture Explorer, which lets you browse and explore your solution.
For more info, see the following links:
To download the RC release, visit: Microsoft Visual Studio 2010 Ultimate RC
To see the RC documentation, see Modeling the Application.
To discuss these tools, visit the Visual Studio 2010 Architectural Discovery & Modeling Tools forum.