Chapter 8. Tools for Architects

From the beginning, ReSharper was created to support developers in their work. ReSharper v8 comes with a new tool for viewing project dependencies, which can be very helpful for architects.

In this chapter, we will cover the following topics:

  • Architecture View
  • Advanced references view
  • Global refactoring

Architecture View

While developers are focused mostly on the detailed implementation of projects, architects need a bird's-eye view of it.

ReSharper v8 comes with a new tool, Architecture View. Architecture View is a graph that presents the dependencies between projects in your solution. You can find a similar tool in Visual Studio Ultimate, but with ReSharper, you do not need to have this most expensive version.

Projects on this graph can be grouped based on solution folders. You can hide unimportant projects and display only dependent or referenced projects. Architecture View allows you to configure the displayed graph to provide the needed perspective.

Architecture View also presents the strength of the relation between two projects. You can easily see this by looking at the thickness of the lines linking the projects—a thicker line means a stronger relation, which means that there are more objects used between these two projects.

Architecture View can be useful for small solutions (with just a couple of projects), but the more projects you have, the more useful it will be for you.

The simple Architecture View is shown in the following screenshot:

Architecture View

The slightly darker area, labeled Tests, is a group that contains two projects that are in the solution folder Tests. If you have a good folder structure in your solution, you can analyze references between different layers/modules as you collapse these groups and only check contained projects if needed.

You can also save your graphs any time and compare them later, so you can quickly check what has changed in your solution.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.225.95.245