如何从 MSI 安装 Visual Studio 2017 扩展 (VSIX) [英] How do you install a Visual Studio 2017 Extension (VSIX) from an MSI

查看:49
本文介绍了如何从 MSI 安装 Visual Studio 2017 扩展 (VSIX)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio 2017 似乎在可扩展性方面改变了很多东西https://docs.microsoft.com/en-us/visualstudio/extensibility/break-changes-2017

Visual Studio 2017 seems to have changed a lot of things in the extensibility area https://docs.microsoft.com/en-us/visualstudio/extensibility/breaking-changes-2017

之前关于从 MSI 安装 VSIX 的建议现在似乎已过时(使用 MSI 安装程序部署 VSIX),但现在似乎没有关于如何做的信息.

The previous recommendations regarding installing a VSIX from an MSI now seem obsolete (Deploying VSIX using MSI installer), but there seems to no information about how to do it now.

VS2017 FAQ 暗示 VSIX 安装程序可以(应该?) 手动启动,这是现在推荐的方法吗?

The VS2017 FAQ implies the VSIX installer can (should?) be kicked off manually, is this the recommender approach now?

vsixinstaller.exe/q/appidinstallpath:"c:\program files(x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe"/appidname:"Visual Studio"/logFile:/skuName:企业/skuVersion:15.0.25810.0"KendoUI.Mvc.VSPackage.vsix"

vsixinstaller.exe /q /appidinstallpath:"c:\program files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe" /appidname:"Visual Studio" /logFile: /skuName:Enterprise /skuVersion:15.0.25810.0 "KendoUI.Mvc.VSPackage.vsix"

它还要求您知道 vsixinstaller.exe 的路径.这是从哪里来的?(更新似乎 MS 工具 vsixbootstrapper 会找到 vsixinstaller.exe并将您的参数传递给它,因此无需直接定位).

It also requires that you know the path to vsixinstaller.exe. Where does this come from? (Update it seems the MS tool vsixbootstrapper will find vsixinstaller.exe and pass through your arguments to it, so no need to locate it directly).

另外你需要知道安装的所有版本的visual studio,这看起来比它应该的要复杂以编程方式查找 VS2017 安装目录.

Also you need to know all the versions of visual studio installed, which looks more complicated than it should be Programmatically finding the VS2017 installation directory.

我是不是遗漏了什么,还是现在真的很复杂?

Am I missing something or is this just really complicated now?

推荐答案

现在真的很复杂.安装扩展可以触发 VS 安装程序安装所需的工作负载,当两者都通过 MSI 发生时会失败.一直在讨论如何使其适用于 WiX,结论是如果不改变 VSIXInstaller.exe 的工作方式,就不可能使其安全工作:http://lists.wixtoolset.org/pipermail/wix-devs-wixtoolset.org/2017-February/thread.html.

It's just really complicated now. Installing an extension can trigger VS Setup to install required workloads, which fails when both are happening via MSI. There's been discussion about how to make it work for WiX and the conclusion is that it's not possible to make it work safely without a change to how VSIXInstaller.exe works: http://lists.wixtoolset.org/pipermail/wix-devs-wixtoolset.org/2017-February/thread.html.

这篇关于如何从 MSI 安装 Visual Studio 2017 扩展 (VSIX)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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