How to uninstall .vsix Visual Studio Extensions?

℡╲_俬逩灬. 提交于 2019-12-04 07:39:25

问题


I am currently trying to install the XNA Game Studio for Visual Studio Express 2013. And I accidentally ran the .vsix program BEFORE actually installing the XNA framework.

After installing it and re-running the .vsix, I get a message error saying that the extension has already been installed. Which is not false.

I have tried a lot of things to "delete" the empty extension : going in %LocalAppData%\Microsoft\VisualStudio and trying to find the extension, but finding myself with nothing, for example.

I would like to know how I can properly uninstall and reinstall the framework.


回答1:


In the Visual Studio menu, goto:

Tools > Extensions And Updates

A new window will pop up, then in the panel to the left, click the arrow besides Installed to bring it down and select the menu item All.

All you have to do now is to navigate in the middle panel to your installed exstension, select it and click Uninstall.




回答2:


To expand on the answer from @Brukvoyed, you can use the VSIXInstaller.exe utility to uninstall a vsix, but you need the vsixid to do so. To get the vsixid of a .vsix file, make a copy of the .vsix file and rename it to .zip. You can then open it and find an extension.vsixmanifest file inside. This is an XML file, and if you open it you will see an <Identity Id="guid"... /> node. The guid is the vsixid you use in the VSIXInstaller.exe command, like this:

vsixinstaller /u:12345678-1234-5678-1234-123456780000



回答3:


In case Visual Studio does not start or cannot display the Extensions And Updates management window you may try to uninstall the extension from the command line. Use the VSIXInstaller.exe utility from standard VIsual Studio package.




回答4:


For VS2015, check your

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions

folder. I had to manually delete quite a few to remove the extensions that I didn't need. Inside each folder is a file named:

extension.vsixmanifest

and inside that file you can look at the DisplayName/Description to see what the extension is.




回答5:


I had a problem with a LiveShare.UI (beta) which broke my Visual Studio UI so could not use the menus at all or do anything. I was going to use Visual Studio installer to repair Visual Studio, but that would probably remove all my extensions. So I picked the Update Visual Studio option instead, and now everything works again. Happy days.




回答6:


To look under the hood for .vsix extensions, here's one way:

  1. Open Visual Studio command prompt
  2. Run an invalid uninstall command

    vsixinstaller /uninstall:abc123

  3. On the error dialog, click the link to the log.

  4. The log contains a number of details, including all of the installed extensions and their locations.
  5. In a particularly interesting extension location, list out descriptions with
    cd /d <interesting path>
    findstr /is Description extension.vsixmanifest
  1. Once the desired extension is located via the description, open its extension.vsixmanifest to obtain the <Identity> GUID. Then uninstall:

    vsixinstaller /uninstall:801375CB-9A15-A641-CB2D-50D43AAD43DC




回答7:


I had 2 problems on VS2017:

Cannot find the extension

If you installed it through the New Project... > Online grouping/tab or downloaded and installed it directly:

  1. in Tools > Extensions And Updates window click on the Online tab at the left sidemenu;
  2. then click on the search bar at the top right (or press Ctrl+E);
  3. type part of the name of the extension and it now should show up at the center of the window;
  4. Click the Uninstall button.

The Uninstall or Disable button doesn't show up

After finding the extension, if there's a green check mark at the right top corner of the extension: it means you are still using the extension in one of your solutions.

So you need to remove the "inner" solution of your main solution that uses that extension:

  1. backup any files you want to keep manually;
  2. In the Solution Explorer (Ctrl+Alt+L) click on the "inner" solution/folder (normally it has the same name as the solution itself).
  3. hit Del and OK;
  4. perform the steps mentioned above (through the Tools > Extensions And Updates window).



回答8:


I had the same problem and how I solved it was by not opening the solution. Just open visual studio, and navigate to Tools -> Extensions and Updates. The visual studio extension finally showed for now. When I opened the solution, and navigated to Tools -> Extensions and Updates it wouldn't show the visual studio extension.

Hopefully this saves someone some time...




回答9:


For Visual Studio 2019:

In the Visual Studio menu, goto: Extensions > Manage Extensions.

Then from the side panel of the pop up window, select Installed. This will show all of your installed VS extensions.



来源:https://stackoverflow.com/questions/22444799/how-to-uninstall-vsix-visual-studio-extensions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!