Validating Application Architecture with Visual Studio 2010 – Layer Diagrams


image

One of the pretty cool new features of Visual Studio 2010 (in the Premium and Ultimate) is that they have provided you basic modeling abilities inside the IDE.  One of the new features is the Layer Diagram.  A Layer Diagram allows you to visually see how your various components (from assembly all the way down to methods) interact and relate.  One great feature that the Layer Diagram provides you is a way to be able to take a snapshot of your systems architecture and later perform validation against that snapshot to see if your code still conforms to your desired layout.

In this post we will review how to create a layer diagram and then how to validate your architecture against that diagram. To read more goto –> Validating Application Architecture with Visual Studio 2010 – Layer Diagrams

image

Once you have the Architecture Explorer open, simply drag on items from the view onto canvas.

image
Click Generate Dependencies and once VS is done, the canvas should look like below:
image

Lets pretend that some time has gone by and you want to double check to see if your code still reflects your desired architecture as you laid out previous

image

You can also check out this post on Layer Diagram: http://blogs.msdn.com/jasonz/archive/2010/02/18/favorite-vs2010-features-layer-validation.aspx

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s