Visual Studio plugin installation
Only the file XmlVisualizer.dll is required to run and use Xml Visualizer v.2.
Place XmlVisualizer.dll in:
"My Documents\Visual Studio version
\Visualizers", e.g.: "My Documents\Visual Studio 2013\Visualizers" (for Visual Studio 2013)
If "Visualizers" directory doesn't exist, then create it manually.
If you want to use the visualizer for remote debugging, copy XmlVisualizer.dll to the same path on the remote computer.
If Visual Studio is open, then restart Visual Studio.Source Code
The Source Code includes the following projects:
"Visualizer" contains the primary Visualizer User Control and a form hosting the Visualizer User Control. The User Control contains the core functionality of XML Visualizer v.2.
"DebugVisualizer" is used to bind the Visual Studio debugger to the Visualizer.
"TestDebugVisualizer" is used to test the Xml Visualizer v.2.
"StandAloneVisualizer" is the standalone version of Xml Visualizer v.2.
"TestStandAloneVisualizer" is used to test the standalone version of Xml Visualizer v.2.
Compiled assemblies will be placed in a "runtime" folder for the DebugVisualizer and the StandAloneVisualizer projects.
The Source Code is in C# and is available for Visual Studio 2012/2013 (for version 7.0 and above), and Visual Studio 2008 and Visual Studio 2010 (for version 6.9).
To build the DebugVisualizer and the StandAloneVisualizer projects, it requires ILMerge (not included) in Xml Visualizer v.2 Source Code. Download ILMerge from here
. Place ILMerge.exe in the same directory as XmlVisualizer.sln.Standalone
Standalone version of Xml Visualizer v.2 that can be used without Visual Studio.User control
By adding the XmlVisualizer.dll to the Visual Studio Toolbox, the Visualizer can be used as a User Control and thereby making all the features of XML Visualizer v.2 available in your application.
Please note that if you add the XmlVisualizer.dll as a User Control to the Visual Studio Toolbox, then the SharpDevelop TextEditor User Control will also be added to the toolbox.Troubleshooting
Troubleshooting for the following error (for version 6.9):
System.InvalidCastException: Unable to cast object of type 'XmlVisualizer.Visualizer' to type 'Microsoft.VisualStudio.DebuggerVisualizers.DialogDebuggerVisualizer'.
at Microsoft.VisualStudio.DebuggerVisualizers.DebugViewerShim.ManagedShim.DelegatedHost.CreateViewer(IntPtr hwnd, HostServicesHelper hsh, SafeProxyWrapper proxy)
If you have both Visual Studio 2005 and Visual Studio 2008 installed, there can be a conflict between Microsoft.VisualStudio.DebuggerVisualizers.dll version 18.104.22.168 (used by Visual Studio 2005) and Microsoft.VisualStudio.DebuggerVisualizers.dll version 22.214.171.124 (used by Visual Studio 2008).
Microsoft.VisualStudio.DebuggerVisualizers.dll version 126.96.36.199 replaces all functionality of version 188.8.131.52 and version 184.108.40.206 is also used by newer versions of Visual Studio 2005 (i.e. Visual Studio 2005 Express Editions).
To use Microsoft.VisualStudio.DebuggerVisualizers.dll version 220.127.116.11 and get support for Xml Visualizer v.2, you'll have to do the following:
1. Make sure that you have the .NET Framework Configuration Tool (mscorcfg.msc) installed. It's installed with the .NET Framework 2.0 SDK.
2. Run "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\mscorcfg.msc"
3. Choose ".NET Framework 2.0 Configuration\My Computer\Configured Assemblies" and then "Configure an Assembly"
4. Choose "Choose Assembly..." and select "Microsoft.VisualStudio.DebuggerVisualizers" it's important that it's version 18.104.22.168
5. Press "Finish"
6. Choose the "Binding Policy"-tab and for "Requested Version" enter "22.214.171.124" and for "New Version" enter "126.96.36.199"
7. Press "OK" and restart Visual Studio.