Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Class Diagram generated by VisualStudio doesn't update itself

VS 2010 Pro: I have generated a class diagram for my library, now added some more classes to it, but the class diagram is only showing the older classes and doesn't get updated automatically. So I am wondering if this is how it is and I should delete and re-add the class diagram every time ? or these is something I should do in VS IDE to get it updated?

like image 812
Bohn Avatar asked Aug 20 '12 19:08

Bohn


People also ask

How do you create a class diagram automatically?

Right click on Package, Subsystem or Model on the structure tree then select [Auto Create Class Diagram]. The simple Class diagram will be created.

What is class diagram implementation?

In domain modeling class diagrams, an implements relationship exists between two classes when one of them must implement, or realize, the behavior specified by the other. The class that specifies the behavior is called the supplier, and the class that implements the behavior is called the client.


2 Answers

Just drag&drop your new classes onto the diagramm or choose generate class diagram out of the contextMenu of the new class(es).

New classes won't be shown automatically. Once a class is on a diagramm it will be updated anytime you change it's members!

like image 96
Pilgerstorfer Franz Avatar answered Oct 17 '22 06:10

Pilgerstorfer Franz


So I am wondering if this is how it is

yes.

and I should delete and re-add the class diagram every time ?

No. You can view changes done to already added classes. To see new classes you can drag n drop them to designer surface.

If you want to view dynamic class dependency you can use architecture explorer. I guess it is only with VS Ultimate. Not sure about Pro. You can generate dependency graph by assembly or namespace. It's nice and fancy :) Very useful to explore cyclic dependency or identifying hubs in the graph. This you don't need to create. It's generated automatically.

like image 45
Ankush Avatar answered Oct 17 '22 04:10

Ankush