Home > Net >  How to show the relationships in Visual Studio class diagram
How to show the relationships in Visual Studio class diagram

Time:01-27

I have a class library with few interfaces and the implementing classes categorized in different folders. I have generated the class diagrams of the interfaces in the project, but not able to see the relationships to the classes derived from these. When i try to choose "Show Derived Interfaces" from the context menu of the interface, i get the below error:

enter image description here

Though in the same folder there are classes which are implemented from that interface.

Thanks in advance for any hint in finding the correct way.

Any hint on how to establish manual relationships between the interfaces and classes would also help. I have tried from the Toolbox -> Inheritance option, but not could not do it.

I am using Visual Studio 2022 Community Edition

Correction: I am able to create the relationships manually (from the Toolbox -> Inheritance option) between classes and its base class type.The problem i see when i try to draw the relationship from the class to its base interface.

CodePudding user response:

I can reproduce your issue:

enter image description here

I notice your metioned:

Though in the same folder there are classes which are implemented from that interface.

But the feature 'Show Derived Interfaces' will not pass focus to the class, but to pass focus to the interface.

enter image description here

  • Related