【问题标题】:Visual Studio 2017 - Can't install WDK extensionVisual Studio 2017 - 无法安装 WDK 扩展
【发布时间】:2019-01-24 00:51:02
【问题描述】:

我正在尝试在 Visual Studio 2017 Enterprise 上安装 WDK,但我收到一条错误消息,声称它不支持我的版本。 WDK 本身已安装,但不会安装 vsix 扩展。

我尝试以管理员身份运行,从“工具”>“扩展”安装扩展并尝试再次安装 WDK。 我还尝试使用命令提示符(用户和管理员)安装它

2019-01-23 7:38:37 PM - Microsoft VSIX Installer
2019-01-23 7:38:37 PM - -------------------------------------------
2019-01-23 7:38:37 PM - vsixinstaller.exe version:
2019-01-23 7:38:37 PM - 15.9.3032
2019-01-23 7:38:37 PM - -------------------------------------------
2019-01-23 7:38:37 PM - Command line parameters:
2019-01-23 7:38:37 PM - C:\program files (x86)\microsoft visual studio\installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,wdk.vsix
2019-01-23 7:38:37 PM - -------------------------------------------
2019-01-23 7:38:37 PM - Microsoft VSIX Installer
2019-01-23 7:38:37 PM - -------------------------------------------
2019-01-23 7:38:37 PM - Found setup instance d3c674cd but not in launchable state.
2019-01-23 7:38:37 PM - Initializing Install...
2019-01-23 7:38:38 PM - Extension Details...
2019-01-23 7:38:38 PM -     Identifier         : Microsoft.Windows.DriverKit
2019-01-23 7:38:38 PM -     Name               : Windows Driver Kit
2019-01-23 7:38:38 PM -     Author             : Microsoft Corporation
2019-01-23 7:38:38 PM -     Version            : 10.0.17740.0
2019-01-23 7:38:38 PM -     Description        : A set of extensions that integrates Windows Driver development into Visual Studio.
2019-01-23 7:38:38 PM -     Locale             : en-US
2019-01-23 7:38:38 PM -     MoreInfoURL        : 
2019-01-23 7:38:38 PM -     InstalledByMSI     : False
2019-01-23 7:38:38 PM -     SupportedFrameworkVersionRange : [4.5,)
2019-01-23 7:38:38 PM - 
2019-01-23 7:38:38 PM -     SignatureState     : ValidSignature
2019-01-23 7:38:38 PM -     SignedBy           : Microsoft Corporation
2019-01-23 7:38:38 PM -     Certificate Info   : 
2019-01-23 7:38:38 PM -         -------------------------------------------------------
2019-01-23 7:38:38 PM -         [Subject]       : CN=Microsoft Corporation, OU=OPC, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
2019-01-23 7:38:38 PM -         [Issuer]        : CN=Microsoft Code Signing PCA 2010, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
2019-01-23 7:38:38 PM -         [Serial Number] : 33000001FC5DB8191027A666C10000000001FC
2019-01-23 7:38:38 PM -         [Not Before]    : 2017-10-05 2:26:08 PM
2019-01-23 7:38:38 PM -         [Not After]     : 2018-10-05 2:26:08 PM
2019-01-23 7:38:38 PM -         [Thumbprint]    : 5E940B33DEAE5945F506ADAB946A997867A40FEF
2019-01-23 7:38:38 PM - 
2019-01-23 7:38:38 PM -     Supported Products : 
2019-01-23 7:38:38 PM -         Microsoft.VisualStudio.Community
2019-01-23 7:38:38 PM -             Version : [15.0,16.0)
2019-01-23 7:38:38 PM -         Microsoft.VisualStudio.Pro
2019-01-23 7:38:38 PM -             Version : [15.0,16.0)
2019-01-23 7:38:38 PM -         Microsoft.VisualStudio.Enterprise
2019-01-23 7:38:38 PM -             Version : [15.0,16.0)
2019-01-23 7:38:38 PM - 
2019-01-23 7:38:38 PM -     References         : 
2019-01-23 7:38:38 PM -         -------------------------------------------------------
2019-01-23 7:38:38 PM -         Identifier   : Microsoft.VisualStudio.MPF
2019-01-23 7:38:38 PM -         Name         : Visual Studio MPF
2019-01-23 7:38:38 PM -         Version      : [11.0,12.0)
2019-01-23 7:38:38 PM -         MoreInfoURL  : 
2019-01-23 7:38:38 PM -         Nested       : No
2019-01-23 7:38:38 PM - 
2019-01-23 7:38:38 PM -     Prerequisites      : 
2019-01-23 7:38:38 PM -         -------------------------------------------------------
2019-01-23 7:38:38 PM -         Identifier   : Microsoft.VisualStudio.Component.CoreEditor
2019-01-23 7:38:38 PM -         Name         : Visual Studio core editor
2019-01-23 7:38:38 PM -         Version      : [15.0,16.0)
2019-01-23 7:38:38 PM - 
2019-01-23 7:38:38 PM - Signature Details...
2019-01-23 7:38:38 PM -     Extension is signed with a valid signature.
2019-01-23 7:38:38 PM - 
2019-01-23 7:38:38 PM - Searching for applicable products...
2019-01-23 7:38:38 PM - Found installed product - Global Location
2019-01-23 7:38:38 PM - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
   at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
   at VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported)
   at VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported)
   at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
   at VSIXInstaller.App.Initialize()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

安装的 Visual Studio 2017 版本为 15.9.4

【问题讨论】:

  • 你找到解决办法了吗?

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


【解决方案1】:

我不确定我的回答是否与这个问题完全相关。但是当我将 wdk(2004 版)安装到 VS2019 中时,我遇到了同样的问题。它已完全安装,但在安装 vsix 时它显示错误。所以我做了这些步骤,它解决了我的问题:

  1. 重新启动操作系统(重要)
  2. 从 ..\Program Files (x86)\Windows Kits\10\Vsix\VS2019 运行 wdk.vsix 文件

【讨论】:

    猜你喜欢
    • 2019-09-04
    • 1970-01-01
    • 1970-01-01
    • 2022-01-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-28
    • 1970-01-01
    相关资源
    最近更新 更多