如何为VS 2017安装WiX扩展

时间:2019-06-21 16:54:14

标签: visual-studio-2017 visual-studio-extensions vsix vsixmanifest

我是Visual Studio 2017 Professional的新手,并且正在尝试复制Vs2013开发环境,包括安装WiX扩展。不幸的是,当我尝试安装Votive2017.vsix文件时,出现错误消息:

VSIX Installer Error Message

请有人帮忙。我在过去三个小时中一直在为此苦苦挣扎,这让我发疯。我的VS2017安装似乎已经完成,无论如何都足以编译,运行和调试从VS2013移植过来的VS解决方案。

亲切问候 保罗·J。

请按照要求在下面找到安装日志的内容:

 24/06/2019 11:00:44 - System.IO.FileLoadException: Could not load file or assembly 'Microsoft.VisualStudio.Threading, Version=15.5.0.0,  Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
 File name: 'Microsoft.VisualStudio.Threading, Version=15.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
    at VSIXInstaller.SupportedVSSKU.get_Host()
    at VSIXInstaller.SupportedVSSKU.CreateExtensionEngine()
    at System.Lazy`1.CreateValue()
    at System.Lazy`1.LazyInitValue()
    at System.Lazy`1.get_Value()
    at VSIXInstaller.App.GetExtensionEngineForApplicableSKU(SupportedVSSKU supportedSKU, IInstallableExtension installableExtension, List`1 applicableSKUs, Boolean isRepairSupported)
    at VSIXInstaller.App.TryAddSkuToValidSkuList(SupportedVSSKU supportedSKU, IInstallableExtension extension, List`1 validSKUs, Boolean isRepairSupported)

 WRN: Assembly binding logging is turned OFF.
 To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
 Note: There is some performance penalty associated with assembly bind failure logging.
 To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

 24/06/2019 11:00:44 - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
    at VSIXInstaller.App.GetInstallableData(String vsixPath, Boolean isRepairSupported, IEnumerable`1& skuData)
    at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
    at VSIXInstaller.App.Initialize()
    at System.Threading.Tasks.Task`1.InnerInvoke()
    at System.Threading.Tasks.Task.Execute()

亲切问候 保罗·J。

2 个答案:

答案 0 :(得分:0)

奇怪的是,该扩展要加载Microsoft.VisualStudio.Threading.dll,因为我已经在一个不存在该程序集的Community Edition中成功安装了它。

1。请下载最新的Votive2017.vsix here

2。并且如果再次尝试加载该程序集而导致安装失败:

如果程序集存在:

  • 将VS2017更新到最新版本。如果已经是最新的15.9.13,请尝试vs repair。(对于15.9.13,gcov -t [whatever you are doing] >&8应该是15.8.0.0)

  • 确保您具有当前计算机的管理员权限。检查FileLoadException Remarks,您会发现此异常与操作系统权限有关。

如果程序集不存在:

  • 还是建议您将VS更新到最新版本。最新版本15.9.13已修复了一些问题。

  • 在那之后,作为解决方法,您可以Assembly version安装Go Tools menu =>Get Tools and Features,其中包含要加载的程序集。

  • 然后,在尝试安装扩展程序时,请确保以Admin身份运行Windows。

另外:程序集的路径应为:(感谢汉斯的提醒!)

VS Extension Development workload

答案 1 :(得分:0)

通过执行以下操作为我安装了扩展程序:

步骤1:创建两个具有上述名称的证书文件。

第2步:右键单击并使用自动选项安装本地计算机的证书(重新启动计算机两次,但我不知道,有什么需要。)

步骤3:我已使用“以管理员身份运行”启动Visual Studio 2019,并打开“管理扩展”以使用“联机”选项卡安装wix。关闭Visual Studio 2019后,它开始安装并显示成功消息。

我已经使用记事本创建了两个文件,以使用以下链接中提到的以下文本创建证书: Wix Toolset Visual Studio 2019 Extension fails to install with invalid certificate

证书文本: DigiCert高保证EV根CA.cer

----- BEGIN证书-----

MIIDxTCCAq2gAwIBAgIQAqxcJmoLQJuPC3nyrkYldzANBgkqhkiG9w0BAQUFADBs
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
d3cuZGlnaWNlcnQuY29tMSswKQYDVQQDEyJEaWdpQ2VydCBIaWdoIEFzc3V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