How to: Install a Visualizer
Applies to: Visual Studio Visual Studio for Mac Visual Studio Code
After you have created a visualizer, you must install the visualizer so that it will be available in Visual Studio. Installing a visualizer is a simple process.
In UWP apps, only the standard text, HTML, XML, and JSON visualizers are supported. Custom (user-created) visualizers are not supported.
To install a visualizer for Visual Studio 2019
Locate the DLL that contains the visualizer you built.
Typically, it is best if both the debugger-side DLL and the debuggee-side DLL specify Any CPU as the target platform. The debugger-side DLL must be either Any CPU or 32-bit. The target platform for the debuggee-side DLL should correspond to the debuggee process.
The debugger-side visualizer is loaded in the Visual Studio process, so it must be a .NET Framework DLL. The debuggee-side can be either .NET Framework or .NET Standard depending on what process is getting debugged in Visual Studio.
Copy the debugger side DLL (and any DLLs it depends on) to either of the following locations:
Copy the debuggee side DLL to either of the following locations:
where Framework is either:
net2.0for debuggees running the
netstandard2.0for debuggees using a runtime that supports
.NET Framework v4.6.1+or
.NET Core 2.0+).
netcoreappfor debuggees running the
.NET Coreruntime. (supports
.NET Core 2.0+)
A debuggee-side DLL is necessary if you want to create a standalone visualizer. This DLL contains code for the data object, which can implement methods of VisualizerObjectSource.
If you are multi-targeting the debuggee-side code, the debuggee-side DLL must be placed into the folder for minimum-supported TFM.
Restart the debugging session.
The procedure is different in Visual Studio 2017 and older. See the previous version of this article.