WPF出现异常,其消息如下所示

System.Resources.MissingSatelliteAssemblyException
The satellite assembly named "Microsoft.VisualStudio.DesignTools.Designer.resources.dll, Version=16.0.0.0, PublicKeyToken=b03f5f7f11d5a3a" for fallback culture "en" either could not be found or could not be loaded. This is generally a setup problem. Please consider reinstalling or repairing the application.

WPF 设计器异常 System.Resources.MissingSatelliteAssemblyException The satellite assembly named "Microsoft

如上所提示,VS环境下没有Microsoft.VisualStudio.DesignTools.Designer.resources.dll文件。一般情况下可以在安装目录下找到。其大致目录为:F:\Program Files (x86)\Microsoft Visual Studio 19\Common7\IDE\PrivateAssemblies下得某个语言包,比如我们示例中,缺少en(English)。

该错误的原因是我们使用了VS编辑器开发环境中不存在的语言环境。

解决方法:

1.我可以在我们程序对本地化文化(CultureInfo)使用存在的语言包,例如“zh-Hans”。

2.将en相关的信息报添加到我们的VS环境中。我没有尝试。

3.这个和我们软件安装时版本的问题,可以重新安装版本以及使用比较完整的版本(非Community)。

 

 

 

 

相关文章:

  • 2021-05-21
  • 2021-04-14
  • 2021-09-28
  • 2021-09-24
  • 2021-09-24
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
猜你喜欢
  • 2022-12-23
  • 2021-06-15
  • 2022-01-12
  • 2022-12-23
  • 2021-07-01
  • 2022-12-23
相关资源
相似解决方案