Layer Diagrams: Guidelines
In Visual Studio Ultimate, you can describe the structure of an application at a high level and verify that the code conforms to this high-level design by using
layer diagrams. To ensure that the code stays consistent with the design, you can include layer validation as part of the build process.
Like a traditional architecture diagram, a layer diagram identifies the major components or functional units of the design and their interdependencies. Each node on the diagram, called a
layer, represents a logical group of namespaces, projects, or other artifacts. You can draw the dependencies that should exist in your design. Unlike a traditional architecture diagram, you can verify that the actual dependencies in the source
code conform to the intended dependencies that you have specified. By making validation part of a regular build on Team Foundation Server, you can ensure that the program code continues to adhere to the system's architecture through future changes.
Define Layers to Represent Functional Areas or Components
Layers represent logical groups of artifacts, such as projects, code files, namespaces, classes, and methods. You can create layers from artifacts in your Visual Studio solution, or you can attach specifications or plans to a layer by linking
documents, such as Word files or PowerPoint presentations. Each layer appears as a rectangle on the diagram and shows the number of artifacts that are linked to it. A layer can contain nested layers that describe more granular tasks.
As a general guideline, name layers according to their function, for example, "Presentation" or "Services". If the artifacts are closely interdependent, place them in the same layer. If the artifacts can be updated separately or used in separate applications,
place them in different layers. To learn about layering patterns, visit the Patterns & Practices site at
Application Architecture Guide Layer DiagramsFree
Non-trivial matters of interest to software architects and other like minded geeks.
Visual Studio Visualization and Modeling Tools - Team blog:
Architecture Tools in VSTS 2010 by somasegar
Layer Diagram Extension using the Feature Pack
Visual Studio 2010 Architecture Tooling Guidance