1

I am creating vsix project that is Editor Classifier (a template for managing editor content). I executed the project, the plugin was installed in that experimental window. It always worked properly. but when I install another plugin (e.g. a menu command or a tool window), the previous plugin overlaps the current one.

I tried to uninstall the plugin directly from experimental window from Manage Extentions menu. All the previous extensions got uninstalled properly by doing this, but when I try to reinstall them, It could not be installed.

James Z
  • 12,209
  • 10
  • 24
  • 44
Tanmay Bairagi
  • 564
  • 5
  • 25
  • 1
    Hi friend, try to delete the component cache from the path `C:\Users\xxx\AppData\Local\Microsoft\VisualStudio\16.0_xxxxxx\ComponentModelCache` to check the issue persists. – Mr Qian Dec 10 '19 at 10:24
  • 1
    Did your issue still persists? Please feel free to let us know whether it works:) – Mr Qian Dec 18 '19 at 09:51
  • @PerryQian-MSFT Yeah! Sure. Whatever happens, I'll communicate. – Tanmay Bairagi Dec 18 '19 at 14:19
  • Hi, what the error message when you reinstalled them? And could you please share the log with us? It will be helpful for us to troubleshoot your issue. Or try to uninstall all extensions by deleting files.(delete all the files from `C:\Users\xxx\AppData\Local\Microsoft\VisualStudio\16.0_xxxx\Extensions` and `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\Extensions`). – Mr Qian Dec 19 '19 at 03:02

2 Answers2

2

All the previous extensions got uninstalled properly by doing this, but when I try to reinstall them, It could not be installed.

This issue is more related to extension caches or for some reason it didn't uninstall cleanly.

So please try these steps to troubleshoot your issue:

  1. please check whether the installed extension is still under the folder and make sure that they are uninstalled cleanly.

  2. try to delete the extension cache files under the path C:\Users\xxx\AppData\Local\Microsoft\VisualStudio\16.0_xxxxxx\ComponentModelCache and sometimes the extension is uninstalled on vs, but the cache is not removed, and the cache is detected to be uninstalled during installation.

And by the way, delete the system temp files under the path C:\Users\xxx\AppData\Local\Temp.

  1. try to do a repair in the VSInstaller to check whether VS is broken.

In addition, if your VS2019 is not the latest version, please update it and see whether the issue persists.

Hope it could help you.

Mr Qian
  • 21,064
  • 1
  • 31
  • 41
0

You can try this: Clean up the experimental environment.
Quote:

If you are developing multiple extensions, or just exploring outcomes with different versions of your extension code, your experimental environment may stop working the way it should. In this case, you should run the reset script. It's called Reset the Visual Studio Experimental Instance, and it ships as part of the Visual Studio SDK. This script removes all references to your extensions from the experimental environment, so you can start from scratch.

fat
  • 6,435
  • 5
  • 44
  • 70