VS 2010 Express-如何从代码生成UML图?

VS 2010 Express - how to generate UML diagrams from code? [duplicate]
2021-06-20
  •  译文(汉语)
  •  原文(英语)

我有c#代码,需要生成它的UML图.

如何在Visual Studio 2010 Express版中做到这一点?

MSDN仅涉及Ultimate Edition.一些较旧的答案建议使用工具,但它们都不与.NET 4.0一起使用.

有什么想法可以从代码创建图表吗?

更新:

这个问题被标记为重复,但是我想指出的是,我并不是通常在寻找UML工具,而是可以从代码创建图表的工具.我对这个问题的答案或建议的问题都不满意.原因如下:

  • 只有Software Ideas Modeller能够直接从代码生成图表,而其他软件则可以从exe或dll文件生成图表.
  • 反向工程图几乎不可用
  • 工具有一些非常重要的使用限制,并且由于复杂性不易操作

无论如何,谢谢您的回答和建议.在这种情况下,似乎老式的铅笔和纸片效果最好.

解决过程1

您无法在快速版本中执行此操作.

试试NClass.不知道它是否支持.NET 4.0和此问题.

速聊1:
尝试过,但是在我的代码上崩溃了
解决过程2

您可以尝试Visual Paradigm.

安装指南:安装

I have c# code and need to generate UML diagrams of it.

How to do it in Visual Studio 2010 Express edition?

MSDN concerns only Ultimate Edition. Some older answers suggests tools but none of them works with .NET 4.0.

Any ideas how to create diagrams from code?

Update:

This question has been marked as duplicate, however I'd like to point that I'm not looking for a UML tool in general but a tool that can create diagrams from code. I'm not very happy with answers both from this question or suggested one. Here are the reasons:

  • only Software Ideas Modeller is able to generate diagrams directly from code, others do it from exe or dll file.
  • reverse engineered diagrams are barely usable
  • tools have some very important usage limitations and due to complexity are not easy to operate

Anyway, thanks you for answers and suggestions. It seems that old fashioned pencil and piece of paper works best in this case.

Solutions1

You cannot do it in the express version.

Try NClass. Not sure if it supports .NET 4.0 and this question.

Talk1:
tried it, but it crashes on my code
Solutions2

You might try Visual Paradigm.

Installation Guide: Installation

转载于:https://stackoverflow.com/questions/18571562/vs-2010-express-how-to-generate-uml-diagrams-from-code

本人是.net程序员,因为英语不行,使用工具翻译,希望对有需要的人有所帮助
如果本文质量不好,还请谅解,毕竟这些操作还是比较费时的,英语较好的可以看原文

留言回复
我们只提供高质量资源,素材,源码,坚持 下了就能用 原则,让客户花了钱觉得值
上班时间 : 周一至周五9:00-17:30 期待您的加入