无论我尝试安装哪种VSIX,都会收到HRESULT E_FAIL错误。示例:当我打开VS2019时,被告知需要更新Data Lake Services和LIve Share VSIX。我单击以同时更新两者,并且当我关闭所有VS窗口时都会进行更新。关闭VS2019时,安装开始,并且立即收到此错误。另外,如果我尝试安装任何新的VSIX,也会收到相同的错误。
我的VS2019已完全更新,我是管理员,可以正常连接。
8/18/2019 12:49:35 PM - Microsoft VSIX Installer
8/18/2019 12:49:35 PM - -------------------------------------------
8/18/2019 12:49:35 PM - vsixinstaller.exe version:
8/18/2019 12:49:35 PM - 16.2.3073
8/18/2019 12:49:35 PM - -------------------------------------------
8/18/2019 12:49:35 PM - Command line parameters:
8/18/2019 12:49:35 PM - C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\vsixinstaller.exe,/appidinstallpath:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe,/skuName:Community,/skuVersion:16.2.29209.62,/appidname:Microsoft Visual Studio Community 2019,/culture:en-US,/noep,C:\Users\borjeo\AppData\Local\Temp\VSIXcixtpa1i.vsix,C:\Users\borjeo\AppData\Local\Temp\VSIXpzsjnww4.vsix,C:\Users\borjeo\AppData\Local\Temp\VSIX2wlszo4g.vsix
8/18/2019 12:49:35 PM - -------------------------------------------
8/18/2019 12:49:35 PM - Microsoft VSIX Installer
8/18/2019 12:49:35 PM - -------------------------------------------
8/18/2019 12:49:36 PM - System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at Microsoft.VisualStudio.Setup.Configuration.ISetupInstance2.GetState()
at VSIXInstaller.SetupExtensions.GetLaunchableInstances(ISetupConfiguration2 configuration)
at VSIXInstaller.SupportedSKUs.EnumerateIsolatedInstalls(Action`1 callback)
at VSIXInstaller.SupportedSKUs.AddInstalledLocationBasedSKUs(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)
答案 0 :(得分:0)
如果由于计算机空间不足而在外部硬盘中或安装Visual Studio的某个位置设置了Visual Studio下载缓存文件夹(c:\ ProgramData \ Microsoft \ VisualStudio \ Packages),则必须连接只要在Visual Studio中安装外部程序,就可以使用外部硬盘。 通常,建议在您的PC中设置VS下载缓存文件夹。 卸载VSIX程序(即添加的外部程序)时,还需要VS下载缓存文件夹。没有它,您将无法卸载外部程序。 在安装VS时检查VS下载缓存文件夹的保存位置。
ref:here