C
C#2y ago
Shinyshark

❔ How can I create a UML Class Diagram from an existing .NET 6 Project?

I have a project that has grown to a larger size than I had anticipated. I want to generate a UML Class Diagram so that I can inspect it further. I have followed this tutorial, but the option to add a class diagram is missing. https://learn.microsoft.com/en-us/visualstudio/ide/class-designer/how-to-add-class-diagrams-to-projects?view=vs-2022 I installed the Class Designer. If I open the Visual Studio Installer via the Tools -> Get Tools and Features option, it says the Class Designer is installed. All my projects target .NET 6.0 framework. I have restarted my Visual Studio 2022 Community Edition. I have restarted my computer.
Add Class Diagrams to projects (Class Designer) - Visual Studio (Wi...
Learn how to design, edit, and refactor classes and other types, add a class diagram to your C#, Visual Basic, or C++ project.
9 Replies
Shinyshark
ShinysharkOP2y ago
Shinyshark
ShinysharkOP2y ago
Shinyshark
ShinysharkOP2y ago
Shinyshark
ShinysharkOP2y ago
Omnissiah
Omnissiah2y ago
if you want to generate the diagram with vs you need enterprise version you can run it for 30 days before it asks for money
Shinyshark
ShinysharkOP2y ago
Oh I had the professional edition @dont I have downloaded the Enterprise edition and started my trial, but I still do not have the options. Would anyone know what I am doing wrong? I don't think the Enterprise edition made much of a difference.
Omnissiah
Omnissiah2y ago
there's a generate diagram command maybe in the solution explorer, i have to search where it's located maybe from the architecture menu or eventually you create an empty class diagram file and then drop the project into it anyway after you create it my suggestion is to disable automatic placement because it drive you crazy
Omnissiah
Omnissiah2y ago
it should be this https://learn.microsoft.com/en-us/visualstudio/modeling/create-layer-diagrams-from-your-code?view=vs-2022 there should be the generate code map command or something similar
Create dependency diagrams from your code - Visual Studio (Windows)
Learn how you can create a dependency diagram in Visual Studio to visualize your software system's high-level, logical architecture.
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server