Open aetos382 opened 10 months ago
The issue here is that the extension doesn't package Microsoft.VisualStudio.DebuggerVisualizers.dll
which can be sourced from C:\Program Files\Microsoft Visual Studio\2022\xxx\Common7\IDE\PublicAssemblies
.
This is because the Microsoft.VisualStudio.DebuggerVisualizers
only contains reference assemblies which are not sufficient when a type referenced in the extension (in this case ObjectSource
) had a dependency on Microsoft.VisualStudio.DebuggerVisualizers.dll
.
@aetos382, FYI, GoodVisualizer
is not failing because the DebuggerVisualizerProviderConfiguration
property getter is never invoked.
@mpeyrotc, I will open an internal bug for this. We should either publish real assemblies in the Microsoft.VisualStudio.DebuggerVisualizers
in the nuget package (the object source project can use ExcludeAssets="runtime"
if necessary). Or we could add Microsoft.VisualStudio.DebuggerVisualizers
as one of the shared dependencies of the extension host.
Debugger Visualizer extensions with custom object sources require the
DebuggerVisualizerProviderConfiguration
property of the visualizer provider to create and return a new object each time.Reproduction steps:
Good Visualizer
orSimple Visualizer
, the dialog will appear normally.Bad Visualizer
, you will see the following error message in the dialog.At this time, the following error occurs internally.
Please fix the behavior so that such errors do not occur, or guide us to define the property without backing store via analyzer.