[Trivial and trivial knowledge] Visual Studio 2019 View the class diagram of the class file

About the role of class diagrams

The class diagram feature is provided in Visual Studio 2019, which can directly convert classes into the form of class diagrams.
When developing software, classes are often represented in the form of class diagrams during the detailed design phase.

Use the class diagram to clearly see the properties, methods, etc. contained in the class

insert image description here

How to View Class Diagrams

① New item under the current project
insert image description here
② Find the class diagram
insert image description here
But some friends may find that the class diagram cannot be found in the drop-down menu. At this point it may be because the original installation of Visual Studio 2019 did not install the relevant components.

The following will address this issue.

Visual Studio 2019 Reinstall Components

① Find it under the Start menu Visual Studio Installer, run it
insert image description here
② Select 修改
insert image description here
工作负荷Find it under the column Visual Studio 扩展开发and select it ⑤ Wait for the download and installation + restart Visual Studio 1, Ctrl + Shift + A to enter the Add item panel 2, Scroll down to find the class diagram 3, General add 4 , Drag the pre-viewed file into it and wait for it to load for a while~
insert image description here
单个组件类设计器
insert image description here



insert image description here

insert image description here

insert image description here

5. Get the class diagram
insert image description here

Summarize

If you want to add or reduce components, you can go to this interface again, select 修改and operate
insert image description here

Guess you like

Origin blog.csdn.net/weixin_52621323/article/details/125710007