I would like to generate a class diagram with relations for my visual studio project. I opened my solution, added a new ModelingProject, added a new .classdiagram file but when i want to drag my folders or my classes onto the diagram layout I get the "not available" sign.
Does anyone has any idea on how to fix this ?

For Visual Studio 2017, 2019 and 2022
This feature is still available, but it is NOT installed by default, you have to install it separately.

After finish installing this component

Very Important Update From the Comments below
Add New Item will NOT show the Class Diagram option. Class Diagram For example,Class Library project will DO show Class Diagram option in the Add New Item dialog.
ASP.NET project will NOT show Class Diagram option in the Add New Item dialog.For generating the class diagram visual studio is providing the in-built option please use that, Go to class view window of your project, RightClick -> select View -> click on View Class Diagram. This will generate class diagram for your project.
Ref:
Thanks
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With