如何手动卸载Visual Studio 2013扩展? [英] How to uninstall a Visual Studio 2013 extension manually?

查看:241
本文介绍了如何手动卸载Visual Studio 2013扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了Visual Studio 2013应用程序的扩展.我决定不想使用该扩展程序,因此转到工具->扩展程序和更新并向下滚动到要安装的扩展程序.

I just installed an extension to my Visual Studio 2013 app. I decided I don't want that extension so I went to Tools->Extensions and Updates and scrolled down to the extension I want to install.

问题是,当我单击卸载按钮时,它不执行任何操作(并且禁用"按钮甚至都不处于活动状态).

The problem is, the uninstall button doesn't do anything when I click it (and the Disable button is not even active).

然后我尝试以管理员身份运行Visual Studio,但这也不起作用.

I then tried running Visual Studio as Administrator but that didn't work either.

我在网上搜索了一些建议,然后找到了一个页面,说该页面使用了Visual Studio安装目录中的 VSIXInstaller.exe 实用程序.要卸载和扩展,您必须使用以下命令行运行它:

I searched the web for suggestions and I found one page that said to use the VSIXInstaller.exe utility found in Visual Studio's install directory. To uninstall and extension you have to run it with the following command line:

VSIXInstaller /q /a /u:{VSIXIdentifier}

我的问题是,如何获取标识符?与扩展版本相同吗?

My question is, how do I get the identifier? Is it the same as the extension version?

此外,假设我们假设使用 VSIXInstaller 不起作用.有没有办法手动卸载扩展程序?

Also, let's say hypothetically that using VSIXInstaller does not work. Is there a way to manually uninstall an extension?

P.S.当我发布此堆栈溢出时,告诉我可能会有 a重复的问题.我读了另一个问题,但并不完全相同.该答案给出的解决方案是以我已经尝试过的方式以管理员身份运行VS.

P.S. As I am posting this Stack Overflow is telling me there might be a duplicate question. I read the other question and it's not quite the same. The solution given on that answer is to run VS as Administrator which I have already tried.

推荐答案

我的问题是,如何获取标识符?与扩展版本相同吗?

扩展名通常打包在VSIX文件中,该文件只是zip存档. zip归档文件中是一个清单文件,其中提供了扩展名标识符.

Extensions are normally packaged in a VSIX file, which are just zip archives. Inside the zip archive is a manifest file that gives the extension identifier.

这是一个SQLite VSIX文件的视图,其中清单文件( extension.vsixmanifest )高亮显示:

Here is a view of a SQLite VSIX file, with the manifest file (extension.vsixmanifest) highlighted:

如果打开清单文件,您将看到类似以下内容的

If you open the manifest file, you will see something like:

<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011">
  <Metadata>
    <Identity Id="SQLite.WinRT" Version="3.8.5" Language="en-US" Publisher="SQLite Development Team" />
    <DisplayName>SQLite for Windows Runtime</DisplayName>
    ...

要回答您的问题,标识符是上方第三行中的Id字段.在这种情况下SQLite.WinRT.

To answer your question, the identifier is the Id field in the third line above. In this case SQLite.WinRT.

在我的机器上,我运行以下命令并能够卸载SQLite扩展名:

On my machine, I ran the following and was able to uninstall the SQLite extension:

vsixinstaller /q /a /u:SQLite.WinRT

此外,假设我们说使用VSIXInstaller不起作用.有办法手动卸载扩展程序吗?

我认为这是一个相当广泛的问题.我不是VSIX扩展专家,但是似乎每个人都可以拥有自己的怪癖.如此答案中所建议的那样,简单地删除目录可能会在90%的时间内有效;但是,可能有某些扩展无法通过这种方式卸载. PHP扩展属于后一种情况.

I think this is a rather broad question. I am no expert on VSIX extensions, but it seems each one can have it's own quirks. Simply deleting a directory, as suggested in this answer, may work 90% of the time; however, there may be extensions that cannot be uninstalled this way. The PHP extension falls into the latter case.

我认为您要提出的问题是这个问题:

I think the question you are trying to ask is this one:

如何卸载用于Visual Studio 2013的 PHP工具扩展?

How do I uninstall the PHP Tools for Visual Studio 2013 extension?

答案似乎在您的屏幕快照中.如果您查看屏幕快照的右下角,则会看到以下文本:

The answer appears to be in your screen shot. If you look in the lower right corner of your screen shot, you will see this text:

您需要使用Windows控制面板中的程序和功能"窗格来删除此扩展名.

You need to use the Programs and Features pane in the Windows Control Panel to remove this extension.

如果我看一下程序和功能,我肯定会看到:

Sure enough if I take a look at the Programs and Features, I see this:

这篇关于如何手动卸载Visual Studio 2013扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆