本文介绍了无法从程序集'System.Drawing,Version = 4.0.0.0的加载类型'System.Drawing.Font'加载类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我知道也有类似的问题,但是我找不到答案,所以我会问一个具体的问题。 我有一个简单的.net核心控制台应用程序。 我正在使用Syncfusion.DocIO.Base和Syncfusion.Core程序集从这样的流创建WordDocument:I know there are similar questions but i couldn't find the answer so i will ask a specif question.I have a simple .net core console application.I'm using the Syncfusion.DocIO.Base and Syncfusion.Core assemblies to create a WordDocument from a stream like this:var word = new WordDocument(rtfStream, FormatType.Rtf);在这里我收到错误消息: 无法加载类型'System。程序集'System.Drawing,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a'中的Drawing.Font'。 here i get the error message:Could not load type 'System.Drawing.Font' from assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.'您有任何东西吗? 推荐答案类型 System.Drawing.Font 在.NET Core 2.0中不可用。尽管.NET Core具有 System.Drawing.dll 和 System.Drawing.Primitives.dll ,但这些都不包含这种类型正像使用完整的.NET Framework绘图功能的库所期望的那样。The type System.Drawing.Font is not available in .NET Core 2.0. While .NET Core has a System.Drawing.dll and System.Drawing.Primitives.dll, those do not contain this type just as many more expected by libraries making use of the full .NET Framework's drawing capabilities. .NET Core 2.1计划支持这些功能,请参见相关的GitHub问题。Support for these features is planned for .NET Core 2.1, see the related GitHub issue. 这篇关于无法从程序集'System.Drawing,Version = 4.0.0.0的加载类型'System.Drawing.Font'加载类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-17 02:51