Use Visual Studio Code Map to visualize your Dataverse code
Use Visual Studio Code Map to visualize your Dataverse code
What an incredible feature I just discovered in Microsoft Visual Studio! Code Map! It will allow you to view and navigate through your code graphically via a viewer, which will greatly simplify your understanding of your C# solutions.
This could be very useful in the following cases:
- Resumption of an existing project with legacy source code.
- Documentation of your code.
- And more...
Warning, there is an important prerequisite, this feature is only available in the Enterprise version of Visual Studio.
Demonstration
Below, I will show you how to generate the Code Map for example for a Dataverse plugin. This example is based on this open source code offered by Microsoft that I found on GitHub.
It's an extremely simple plugin with only one class and references. You will see that it is possible in a few clicks to obtain the code map.
Step 1 : Open your solution
Step 2 : Add a Directed Graph Document(.dgml) item to your project
Step 3 : Drag and Drop the desired classes you want to explore
You will see the map appear just after
Then you can expand and start your navigation.
Step 4 : You can generate the code map for the entire solution
On the menu bar, choose Architecture > Generate Code Map for Solution. 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
Microsoft Documentation
Of course, my example is very simple and you imagine any other scenario that will match to your needs. You could use it for Plugins or any kind of other C# development.
Coming from the official MS documentation, you can see a Code Map much more bigger that can show you the kind of things you can do.
Finally, please find here the official documentation wherein you will find all the options and capabilities of this wonderful feature. Such as legends, filters, dependencies, ...
Use Visual Studio Code Map to visualize your Dataverse code
Published on:
Learn moreRelated posts
Power Platform admin center – Manage agent security with enhanced admin controls
Update: Release of this feature has been postponed, we will announce a new date in the future. We are announcing the ability to govern Copilot...
Power Platform – Manage system views with security role service update
We are announcing an update to the prerequisites for managing access to public system views with security roles for Power Platform. This updat...
Power Platform – Monitor the health of your resources
We are announcing the ability to monitor the health of your resources in Power Platform admin center and in Power Apps. This feature will reac...
Power Platform & M365 Dev Community Call – July 31st, 2025 – Screenshot Summary
Call Highlights SharePoint Quicklinks: Primary PnP Website: https://aka.ms/m365pnp Documentation & Guidance SharePoint Dev Videos Issues...
Power Platform admin center – Information regarding the end of support for classic PPAC
Starting on September 3, 2025, the classic Power Platform admin center (PPAC) experience will have reached an end of support. The new PPAC off...
Microsoft 365 & Power Platform Call (Microsoft Speakers) – Community Takeover – July 29th, 2025 – Screenshot Summary
Call Highlights SharePoint Quicklinks: Primary PnP Website: https://aka.ms/m365pnp Documentation & Guidance SharePoint Dev Videos Issues...
Power Platform – Assisted mapping for standard dataflows
We are announcing assisted mapping for standard dataflows in Power Platform. This feature will reach general availability on July 31, 2025. Ho...
Why Environment Management Matters for Architects and Developers in Power Platform
Environment Management isn’t just an admin feature—it’s a strategic enabler for solution architects and developers building on Power Platform....
Power Platform admin center – Unlock customer managed key environments by restoring access to the key vault
We are announcing the ability to re-enable locked customer managed key environments in Power Platform admin center. This public preview featur...
Dynamics 365, Power Platform & Copilot 2025 Release Wave 2 Overview
With Microsoft’s upcoming October 2025 updates announced, we highlight the more interesting changes and new features. As with the Wave 1 relea...