The graph area in the right part of the Architecture View provides graphical representation of the project dependencies in the current solution or in the opened dependency snapshot.
Right-click on projects in the graph to use the same set of ReSharper project-level commands as that available in the Solution Explorer.
Showing and hiding items
You can show or hide specific solution items (projects, folders, solution folders) in the graph using check-boxes for the corresponding items in the left. In the graph area itself you can hide items in two ways:
- You can select one or more items, right-click on them and choose Show only selected modules. To select multiple items, Ctrl-click them.
- To hide a particular item, you can select it in the graph and press Delete.
Another excellent way to concentrate on specific items is to display the dependent or referenced projects. To do so, select one or more items (projects or grouping items), right-click the selection and choose Show This/These and Dependent/Referenced.
Panning and zooming graph
To pan and zoom the graph, use the controls in the upper left corner of the graph area. Alternatively, you can pan the graph using scroll bars or click anywhere in the graph and drag while the hand cursor is shown. For zooming, you can also use the mouse wheel.
The graph layout is calculated automatically, but you can change it if necessary: all items can be moved. To move an item (project, link, grouping item, or code metric label), first click on it to select, and then click and drag it while the cross cursor is shown.
Using the Group by selector, you can group projects by solution folders or by file system structure. The grouping applies both in the left part and in the graph. If necessary, you can collapse and expand grouping items in the graph in one of the following ways:
- Click on the minus sign in the left top corner of the grouping item. When collapsed, the sign changes into plus and you can click on it to expand the item.
- Select a grouping item in the graph and press Ctrl+plus and Ctrl+minus.
- Click Collapse Graph and Expand Graph on the toolbar to collapse or expand all grouping items.
Project references and code metrics
To view how exactly the projects in your solution depend on each other, turn on the Show Code Metrics button. You will see that the references have different thickness, which represents the code metric or, in other words, how many times types of the referenced project are used in the referencing project. If you hover the mouse over a reference, the code metric appears in the tooltip.
To learn more about the usages, select the corresponding link and press Alt+F7Ctrl+K,R or Shift+F12 or right-click and choose Show Usages. ReSharper will show the usages in the Find Results window.
When the code metrics are enabled, ReSharper also highlights unused project references with a dotted lines. You do not need to switch from the graph to remove unused project references - just select the unused reference and press Ctrl+Shift+RCtrl+Shift+R or right-click and choose Refactor This. Then press Alt+DeleteCtrl+R,D or Alt+Delete or click Safe Delete Assembly Reference.
At any point of exploring project dependencies, you can export the current view to an image. To do so, click Export to PNG and specify where to save the image file.