Armando Rojas Valdez
Armando Rojas Valdez

Reputation: 95

Is it possible to generate a class diagram from my Visual Studio project environment?

Actually i have a Visual Studio 2019 project that which are going to updated trought of a new programing languaje, a new microservice architechture and a new data base manager. i have the project like Visual Studio 2019 solution and i asked to me, if is possible with Visual Studio generate the class diagram of my project automatically??? because i only have this project such a documentation and reference frame, with the code i can generate automatically the class diagram? is possible know the bussines rules trought the code?

Upvotes: 4

Views: 12365

Answers (2)

Ognyan Dimitrov
Ognyan Dimitrov

Reputation: 6251

One neat approach which neither requires enterprise edition nor VS at all and is free and customizable is the extension for VS Code named "CSharp to PlantUML"

You can find the repo here: https://github.com/pierre3/PlantUmlClassDiagramGenerator

You can export the generated plantUML file to SVG, PDF, PNG, and several other formats.

Upvotes: 0

Wenbin Geng
Wenbin Geng

Reputation: 3688

Please follow the steps below:

  1. Start Visual Studio Installer, click "Single Component", "Code Tools", and check "Class Designer".

  2. Right-click the project to be viewed, select "View", "View Class Diagram" or right-click the project, select Add, New Item, and create a new class diagram.

  3. Finally, drag the project into the class diagram to generate the class diagram.

Upvotes: 5

Related Questions