命令行VSIX安装程序问题 [英] Command Line VSIX installer issue

查看:421
本文介绍了命令行VSIX安装程序问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用VSIX安装程序将自定义VSIX安装到Visual Studio 2017中.我已使用命令行过程来安装VSIX.

命令行安装:

VSIXInstaller.exe"VSIXFilePath" \ q

有时在Visual Studio中默认情况下禁用扩展.我已经卸载了它并手动安装了VSIX.它正确地在Visual Studio中启用.再次将其卸载并尝试通过上述命令提示符进行安装,Visual Studio中默认禁用VSIX 工作室.

谁能建议我这可能是什么原因以及如何解决这个问题?

问候,
Cheran

Hi All,

I am using VSIX installer for installing my custom VSIX into Visual Studio 2017. I have used Command line process to install VSIX.

Command line Installation:

VSIXInstaller.exe "VSIXFilePath" \q

Some of times extension was disabled by default in Visual Studio. I have uninstalled it and installed VSIX manually. It enbled in Visual Studio properly. Again uninstalled it and tried to install via command prompt as above, VSIX disabled by default in Visual Studio.

Can anyone suggest me what could be the reason for this and how to resolve this?

Regards,
Cheran

推荐答案

在VS的早期版本(例如VS 2015)中,如果不删除先前的安装,即如果以下文件夹中的两个文件夹(具有随机名称)包含以下内容,则会在更新后每次重新启动时禁用扩展名:相同的扩展名:

In previous versions of VS (such as VS 2015) an extension got disabled on every restart after an update if somehow the previous installation was not removed, that is, if two folders (with random names) inside the following folder contained the same extension:

C:\ Users \< user> AppData \ Local \ Microsoft \ VisualStudio \ 14.0 \ Extensions

C:\Users\<user>AppData\Local\Microsoft\VisualStudio\14.0\Extensions

解决方法是删除两个文件夹,然后重新安装.

The workaround was to delete the two folders and install again.

也就是说,VS 2017 RC的VSIX安装程序是新的,并且使用不同的方法,迫使您关闭所有VS实例和相关进程,批处理安装等.因此,它可能存在错误(我报告了一个错误,即待发布).

That said, the VSIX installer of VS 2017 RC is new and uses a different approach, forcing you to close all VS instances and related processes, batching installations, etc. As such, it can have bugs (I reported one that is pending to be released).

我建议您尽快在Microsoft Connect( https://connect.microsoft.com/VisualStudio )上打开错误报告.带有Microsoft可以验证和修复的repro方案.

I suggest you to open a bug report ASAP on Microsoft Connect (https://connect.microsoft.com/VisualStudio) with a repro scenario for Microsoft to verify and fix.

PS:请注意,正确的语法是/q而不是\ q

PS: Notice that the correct syntax is /q not \q


这篇关于命令行VSIX安装程序问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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