In Visual Studio 2010 I can generate class diagram from my project with 2 clicks. But now in Visual Studio 2013 I don't see the option "View Class Diagram" in project menu. Where did this item disappear? How can I generate class diagram from project now?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Right click on the project in solution explorer or class view window --> "View" --> "View Class Diagram"
回答2:
For creating real UML class diagrams:
In Visual Studio 2013 Ultimate you can do this without any external tools.
- In the menu, click on Architecture, New Diagram Select UML Class Diagram
- This will ask you to create a new Modeling Project if you don't have one already.
You will have a empty UMLClassDiagram.classdiagram.
- Again, go to Architecture, Windows, Architecture Explorer.
- A window will pop up with your namespaces, Choose Class View.
- Then a list of sub-namespaces will appear, if any. Choose one, select the classes and drag them to the empty UMLClassDiagram1.classdiagram window.
Reference: Create UML Class Diagrams from Code