【问题标题】:Can't open properties for solution in Visual Studio 2019无法在 Visual Studio 2019 中打开解决方案的属性
【发布时间】:2020-12-28 08:22:29
【问题描述】:

下载 16.8.3 版本后 VS 开始向我显示此警告:

我的主要问题是我无法打开解决方案属性,因为它显示了这个错误:

我试过了:

  1. 删除%localappdata%\Microsoft\VisualStudio\16_xxxx\ComponentModelCache 和/或%appdata%\Roaming\Microsoft\VisualStudio\16.0 中的所有内容
  2. 正在删除.vs 文件夹
  3. 禁用每个已安装的扩展程序
  4. 当然,在每一步之后都重新启动 VS,但上述方法均无效。
  5. 还尝试阅读给定的.xml 文件,但它不可读也没有帮助,至少对我而言。 有谁知道问题出在哪里?提前致谢。

更新 1:有错误的 XML 部分

<entry>
    <record>583</record>
    <time>2020/12/20 13:48:37.553</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [ErrorListPackage]</description>
    <guid>{4A9B7E50-AA16-11D0-A8C5-00A0C921A4D2}</guid>
  </entry>
  <entry>
    <record>584</record>
    <time>2020/12/20 13:48:38.803</time>
    <type>Error</type>
    <source>VisualStudio</source>
<description>CreateInstance failed for package [ErrorListPackage]Source: &apos;mscorlib&apos; Description: Could not load file or assembly &apos;Microsoft.VisualStudio.ErrorListPkg, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The module was expected to contain an assembly manifest.&#x000D;&#x000A;System.BadImageFormatException: Could not load file or assembly &apos;Microsoft.VisualStudio.ErrorListPkg, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The module was expected to contain an assembly manifest.&#x000D;&#x000A;File name: &apos;Microsoft.VisualStudio.ErrorListPkg, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos;&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;   at System.AppDomain.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A;&#x000D;&#x000A;WRN: Assembly binding logging is turned OFF.&#x000D;&#x000A;To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.&#x000D;&#x000A;Note: There is some performance penalty associated with assembly bind failure logging.&#x000D;&#x000A;To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].&#x000D;&#x000A;</description>
    <guid>{4A9B7E50-AA16-11D0-A8C5-00A0C921A4D2}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo></errorinfo>

【问题讨论】:

  • 分享XML,也许我们可以看到更多细节
  • @magicandre1981 我用 XML 部分更新了帖子
  • @GeorgeFrias 谢谢,我会检查的
  • Microsoft.VisualStudio.ErrorListPkg 插件无法加载 System.BadImageFormatException,这意味着混合 32 位和 64 位 DLL。

标签: visual-studio visual-studio-2019


【解决方案1】:

我没有添加其他评论的帖子声誉,我昨天才再次开始使用该服务。

我会创建一个还原点(或者在出现问题后重新安装 VS)并在出现问题时使用该还原点。

我真的希望你使用 Windows,否则这对你没有好处,因为我只是在那个。

【讨论】:

  • 感谢您的回复,我想避免使用这种解决方案,因为我在 VS 上有很多扩展、添加等,而且我需要一天甚至更长时间才能重新安装所有这些,而且我现在没有那个时间。我会看看@magicandre 提供的关于 cpu 架构的解决方案,并在我有时间的时候发布一个更新,因为这对我来说不是一个紧迫的问题,但它仍然必须解决。
【解决方案2】:

我最终所做的只是从 VS 安装程序修复 VS,花了我一个小时甚至更多时间,但肯定比完全重新安装要快。

【讨论】:

    猜你喜欢
    • 2020-09-24
    • 2020-03-21
    • 2020-01-14
    • 2021-02-05
    • 2015-07-10
    • 1970-01-01
    • 1970-01-01
    • 2023-03-03
    • 1970-01-01
    相关资源
    最近更新 更多