Reputation: 199
I am trying for some hours to install a custom visualizer in VS2022. Basically it is a simple string visualizer that opens a wpf form.
I followed this: https://learn.microsoft.com/en-us/visualstudio/debugger/how-to-install-a-visualizer?view=vs-2022
But the instructions do not seem to work.
When the visualizer and the test console app are in the same solution, the visualizer works, shows up. Everything is alright, but that is not of too much help
What I have tried until now, but without success:
Do you guys have any idea what should I try? Or what could be the problem? Did any of you succeeded in running a custom visualizer in VS2022
Thank you
Upvotes: 1
Views: 1982
Reputation: 374
I have also face the same challenge below steps helped me to fix the issue
Navigate to Project location follow below steps -
Upvotes: 1
Reputation: 199
So, after some days, and many hours of trial and error, I could finally install and see my custom visualizer. Basically, what I have done and (I think) it solved the issues:
Cleaned up all the dlls from "C:\Users\XXXX\Documents\Visual Studio 2022\Visualizers" and all of its subfolders corresponding to .net framework versions
Checked that my visualizer corresponds to the correct type:
[assembly: DebuggerVisualizer( typeof(DebuggerSide), typeof(TextChunkObjectSource), Target = typeof(IEnumerable), Description = "PDF Visualizer")]
Don't put List<TextChunk>
, or IReadOnlyList<TextChunk>
, instead of IEnumerable<TextChunk>
Upvotes: 0