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?
Right click on Package, Subsystem or Model on the structure tree then select [Auto Create Class Diagram]. The simple Class diagram will be created.
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.
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!
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.
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