![]() You can also drag items from Solution Explorer, Class View, or Object Browser, into a new or existing code map. ![]() Or, open the shortcut menu for one or a group of items and choose Show on Code Map. On the Solution Explorer toolbar, choose Show on Code Map. In Solution Explorer, select the projects, assembly references, folders, files, types, or members that you want to map. To see the dependencies in those changes, you can create a code map from those files. Suppose you have a code review to perform in some files with pending changes. Find potential problems in your code by running an analyzer.Customize code maps by editing the DGML files.Hide Solution Folders and any other containers you don't want to see using the Filters pane.Įxpand the groups and select items in the map to view the relationships. The containing context is carried over to the new map. Hold Ctrl while selecting the items you want to focus on, open the shortcut menu, and choose New Graph from Selection. For example, to drill into class and member view, simply filter all the namespace nodes in the Filters pane.Īnother way to focus in on a complex solution map is to generate a new map containing selected items from an existing map. To focus in on specific parts of the map, you can continue to remove items you aren't interested in. This expands the groups at both ends of the link and shows only those items and dependencies that participate in the link. Choose Show Contributing Links (or Show Contributing Links on New Code Map). To examine items and dependencies represented by an aggregate link, first select the link and then open its shortcut menu. This shows details of a code element or the categories that a link represents. To get more information about an item or link, move the pointer on top of it until a tooltip appears. To see specific types of links, use the checkboxes in the Filters pane to hide the types you aren't interested in. There might also be method calls, but these are hidden by the inheritance relationship. If you see a green link, it might not mean there's just an inheritance relationship. To explore deeper levels of code, do the same for namespaces, types, and members. Or use the keyboard by selecting the item then pressing the plus key ( +). Move your mouse pointer on top of the node and then click the chevron (down arrow) when it appears. Instead, to see inside an individual node, expand it. In fact, for complex solutions, memory limitations may prevent you from expanding all the groups. However, this may not be useful for a large solution. You can expand everything by pressing CTRL+A to select all the nodes and then choosing Group, Expand from the shortcut menu. To drill down into the map, expand the groups that represent projects and assemblies. By default, system base types are hidden on the map to reduce clutter. External assemblies show only those items that are used. The Externals group contains anything outside your solution, including platform dependencies. By default, all containment relationships appear as groups, which you can expand and collapse. ![]() This example solution contains Solution Folders ( Tests and Components), Test Projects, Web Projects, and assemblies. Use the Legend button on the code map toolbar to show or hide the list of project type icons (such as Test, Web, and Phone Project), code items (such as Classes, Methods, and Properties), and relation types (such as Inherits From, Implements, and Calls). The wider the aggregate link, the more dependencies it represents. If your code hasn't changed since the last time you built it, you can select Architecture > Generate Code Map for Solution Without Building instead.Ī map is generated that shows the top-level assemblies and aggregated links between them. On the menu bar, choose Architecture > Generate Code Map for Solution. To see all the dependencies in your solution: ![]() Similarly, you can create a new code map file without adding it to your solution by selecting Architecture > New Code Map or File > New > File. This template may not appear alphabetically, so scroll down to the bottom of the template list if you don't see it.Ī blank map appears in your solution's Solution Items folder. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |