VSIX 安装失败

时间:2021-04-25 15:56:08

标签: visual-studio visual-studio-2019 vsix

我在 Visual Studio 2019 中下载了扩展程序,但在安装时发生错误。

image of error

安装日志是这样的:

  4/25/2021 8:41:33 PM - Microsoft VSIX Installer
     4/25/2021 8:41:33 PM - -------------------------------------------
     4/25/2021 8:41:33 PM - vsixinstaller.exe version:
     4/25/2021 8:41:33 PM - 16.9.2017
     4/25/2021 8:41:33 PM - -------------------------------------------
     4/25/2021 8:41:33 PM - Command line parameters:
     4/25/2021 8:41:33 PM - C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VSIXInstaller.exe,C:\Users\Usman\Downloads\ProductivityPowerPack2017.vsix
     4/25/2021 8:41:33 PM - -------------------------------------------
     4/25/2021 8:41:33 PM - Microsoft VSIX Installer
     4/25/2021 8:41:33 PM - -------------------------------------------
     4/25/2021 8:41:34 PM - System.IO.FileLoadException: Could not load file or assembly 'Microsoft.VisualStudio.Validation, Version=15.3.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.Validation, Version=15.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
        at VSIXInstaller.SupportedSKUs.AddInstalledIsolatedShells(Version
 vsVersion, IntPtr userToken)
        at VSIXInstaller.SupportedSKUs.InitializeSupportedSKUs(IntPtr userToken)
        at VSIXInstaller.ExtensionService.InitializeSupportedSKUs(ICommandLineData
 cmdLineData, IntPtr duplicatedUserToken)
        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)
     
     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].

2 个答案:

答案 0 :(得分:2)

运行 Visual Studio 安装的修复。

答案 1 :(得分:0)

如果修复不起作用,您可能已经移动了 VS 安装,现在它不会安装任何东西。

这是因为它“可能”在标准目录之外的目录中找到 VS 安装程序。重新安装安装程序本身,然后尝试安装扩展程序或其他什么