我尝试在 Visual Studio 2022 17.0.5 版本中安装多个扩展。但每次我在 VSIX 安装程序中都会收到此错误。截图在链接里 VSIX 安装程序错误
安装日志文件显示以下行 -
1/15/2022 12:07:57 PM - Microsoft VSIX Installer
1/15/2022 12:07:57 PM - -------------------------------------------
1/15/2022 12:07:57 PM - vsixinstaller.exe version:
1/15/2022 12:07:57 PM - 17.0.5234
1/15/2022 12:07:57 PM - -------------------------------------------
1/15/2022 12:07:57 PM - Command line parameters:
1/15/2022 12:07:57 PM - C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\vsixinstaller.exe,/appidinstallpath:C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.exe,/skuName:Community,/skuVersion:17.0.32112.339,/appidname:Microsoft Visual Studio Community 2022,/culture:en-US,/noep,C:\Users\User\AppData\Local\Temp\VSIXf154kdcy.vsix
1/15/2022 12:07:57 PM - -------------------------------------------
1/15/2022 12:07:57 PM - Microsoft VSIX Installer
1/15/2022 12:07:57 PM - -------------------------------------------
1/15/2022 12:07:57 PM - System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at VSIXInstaller.App.SetGlobalLogger(IInteropLogger logger)
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)
我无法理解日志文件。谁能帮我解决正在发生的问题吗? 预先感谢。
尝试-
下载 VSIX 文件,然后通过命令行安装下载的 VSIX 始终使用“C:\Program Files (x86)\Microsoft Visual Studio\Installer 资源 pp\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe"