Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced_Visualizer_Scenarios: How to create a VSIX installer for it this Debugger Visualiser? #296

Open
PolarGoose opened this issue Dec 15, 2024 · 1 comment

Comments

@PolarGoose
Copy link

PolarGoose commented Dec 15, 2024

The Advanced_Visualizer_Scenarios example shows how to create a Debugger Visualizer.

The Readme file says that the plugin DLL needs to be copied to the C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers folder.

Following this example, I managed to create my own Debugger Visualiser.
However, I don't know how to package it into a VSIX installer so that I can publish it on the https://marketplace.visualstudio.com/vs

The problem is that VSIX deploys the binaries to the folder like C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\VSExtensions\rybgvyx5.mow
I can't find a way how to tell the installer to deploy my dll to the C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers

Could you please help me?

@PolarGoose
Copy link
Author

PolarGoose commented Dec 16, 2024

I have found another example that shows a workaround:
VSX-Samples.VSIXDebuggerVisualizer
How it works:

  • Implementation: VSIX/VSIXPackage.cs Initialize() method
  • They create a dummy VS extension that, when loaded, copies the DebuggerVisualizer.dll to the My Documents\<VisualStudioVersion>\Visualizers folder

The problem is that when the extension is removed, the DebuggerVisualizer.dll remains installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant