升级到 17.2 后 Visual Studio 立即关闭解决方案

升级到 17.2 后 Visual Studio 立即关闭解决方案

昨天我将 Visual Studio 2022 从 17.1.x 升级到了 17.2。现在,当我尝试打开解决方案时,我可以看到解决方案资源管理器中填充了项目,并且我之前打开的文件也会打开。大约一秒钟后,解决方案关闭。

大多数解决方案都会发生这种情况,但并非所有解决方案都会发生这种情况,但我找不到模式。有一个解决方案我终于可以打开一次,但今天它又立即关闭了。当我创建新解决方案并添加项目时,VS 也会(有时)关闭该解决方案。

我尝试过(但没有解决问题):

  • 在安全模式下运行 VS,即devenv /SafeMode
  • 重置VS,即devenv /ResetSettings
  • 使用 Visual Studio 安装程序修复安装
  • 已移除一些扩展。诚然,我可能必须删除所有扩展,以确保问题不在于其中任何一个
  • 运行带有日志记录的 VS。日志文件显示一些有关无法加载 ChromeDebugAdapter 和 EdgeDebugAdapter 的错误,但我不知道如何修复它们。确切的错误消息如下。

有人知道如何进行吗?

更新 我的问题似乎与这个。我会监视该线程,如果已修复则在此发布答案。


Unable to load extension at: C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\PROFESSIONAL\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\WEBCLIENT\DIAGNOSTICS\CHROMEDEBUGADAPTER\. Exception text: Microsoft.VisualStudio.ExtensionManager.InvalidExtensionManifestException: This VSIX does not apply to any product installed on this machine. The problem could be that the VSIX manifest's format is not recognized, or that the manifest has been corrupted. ---> System.InvalidOperationException: There is an error in XML document (12, 5). ---> System.Xml.Schema.XmlSchemaValidationException: The element 'Identifier' in namespace 'http://schemas.microsoft.com/developer/vsx-schema/2010' has incomplete content. List of possible elements expected: 'SupportedProducts' in namespace 'http://schemas.microsoft.com/developer/vsx-schema/2010'.
 at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(ValidationEventHandler eventHandler, Object sender, XmlSchemaValidationException e, XmlSeverityType severity)
 at System.Xml.Schema.XmlSchemaValidator.InternalValidateEndElement(XmlSchemaInfo schemaInfo, Object typedValue)
 at System.Xml.XsdValidatingReader.ProcessEndElementEvent()
 at System.Xml.XsdValidatingReader.Read()
 at System.Xml.XmlReader.ReadElementString()
 at Microsoft.VisualStudio.ExtensionManager.XmlSerializationReaderVsix.Read5_VsixIdentifier(Boolean isNullable, Boolean checkType)
 at Microsoft.VisualStudio.ExtensionManager.XmlSerializationReaderVsix.Read12_Vsix(Boolean isNullable, Boolean checkType)
 at Microsoft.VisualStudio.ExtensionManager.XmlSerializationReaderVsix.Read13_Vsix()
 at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
 --- End of inner exception stack trace ---
 at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
 at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ReadVSIXManifest(XmlReader xmlReader)
 at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ReadManifest(Stream manifestStream)
 --- End of inner exception stack trace ---
 at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ReadManifest(Stream manifestStream)
 at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl..ctor(String path)
 at Microsoft.VisualStudio.ExtensionManager.InstalledExtensionImpl..ctor(String vsixManifestPath, IEngineHost engineHost, Boolean installedPerMachine, CultureInfo preferredCulture, IList1 extensionPackVsixIds, IList1 packageGuids)
 at Microsoft.VisualStudio.ExtensionManager.InstalledExtensionImpl..ctor(String vsixManifestPath, IEngineHost engineHost, Boolean installedPerMachine, CultureInfo preferredCulture, IList1 packageGuids)
 at Microsoft.VisualStudio.ExtensionManager.ScanModule.TryLoadExtension(ExtensionLocations location, String fullPath, String normalizedPath, InstalledExtensionImpl& installedExtension, Int32 retryCount, Int32 retryDelay, Int32 attempts).

答案1

似乎有更新

在这个版本 12.2.5 中似乎修复了无法安装扩展的问题

修复了 VS2022 和 VS2015(或更早版本)的 SxS 安装导致 VS 无法扫描扩展的问题。

https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes#17.2.4

相关内容