I could not find how to generate existing class diagrams on VS2017 Community Edition. Is it not available to Community Editions. Could you please help how can I generate class diagrams of the project?
4 Answers
I assume you mean class diagrams, not UML diagrams. Starting with Visual Studio 2017, the support for class diagrams is not installed by default. You need to explicitly select it during installation:
- From the Start menu, launch Visual Studio Installer.
- Click Modify button for your installation.
- Switch to Individual components tab, scroll down and select Class Designer. Press Modify button.
The complete procedure with screenshots is described here (because our product VSdocman also relies on this feature if you want to generate class documentation with the diagrams).

- 4,831
- 22
- 49
I have the impression that you're not talking about the UML diagram feature which was retired indeed. I'm assuming you're talking about the Class Diagram.
First of all as Peter pointed out, make sure this feature is installed in your system.
Then, as answered here, it's a known issue (VOTE!)
As a workaround, From the New File dialog box create a plain XML named Diagram.cd
(replace Diagram
with your choice), right click the file and select Open With..., and select XML (Text) Editor, then replace its contents with the following:
<?xml version="1.0" encoding="utf-8" ?>
<ClassDiagram MajorVersion="1" MinorVersion="1">
<Font Name="Segoe UI" Size="9" />
</ClassDiagram>
Then close the file saving it. When you reopen it normally it should work now.

- 101,809
- 122
- 424
- 632
Community edition doesn't allow you to do it.
Version support for VS 2015 for architecture and modeling tools

- 2,601
- 24
- 33
-
this link for vs2015 but I think it is applicable to vs2017. Thx – Omer Mar 22 '17 at 20:19
-
Unfortunately nothing has changed at this direction – ivamax9 Mar 22 '17 at 20:20
-
I had no problem adding it to VS2017 using @Peter Macej's approach – Steve Mol Oct 13 '22 at 05:42
Apparently Microsoft has decided to not add that functionality in Visual Studio 2017, for any of the product versions blogs.msdn.microsoft.com

- 881
- 16
- 29