SharpDevelop V5.1.0.5216 运行出错
Exception thrown:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --->
System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'ICSharpCode.SharpDevelop.Gui.FontSelector' that matches the specified binding constraints threw an exception. --->
System.TypeInitializationException: The type initializer for 'System.Windows.Media.Fonts' threw an exception. --->
System.IO.FileFormatException: No FontFamily element found in FontFamilyCollection that matches current OS or greater: Windows7SP1 --->
System.IO.FileFormatException: No FontFamily element found in FontFamilyCollection that matches current OS or greater: Windows7SP1
原因:
在安装 .NET FRAMEWORK 4.7.1之后发生,
具体原因及解决方案:
https://github.com/dotnet/announcements/issues/53
重要提示:
及时打补丁 就不会出现这个错误了。