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
重要提示:
及時打補丁 就不會出現這個錯誤了。