Application: EtoNet5.Wpf.exe
CoreCLR Version: 5.0.721.25508
.NET Version: 5.0.7
Description: The process was terminated due to an unhandled exception.
Exception Info: System.TypeInitializationException: The type initializer for 'System.Windows.Media.FontFamily' threw an exception.
---> System.IO.FileNotFoundException:
File name: 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at MS.Internal.FontCache.FamilyCollection.FromWindowsFonts(Uri folderUri)
at System.Windows.Media.FontFamily.PreCreateDefaultFamilyCollection()
at System.Windows.Media.FontFamily..cctor()
--- End of inner exception stack trace ---
at System.Windows.Media.FontFamily.LookupFontFamilyAndFace(CanonicalFontFamilyReference canonicalFamilyReference, FontStyle& style, FontWeight& weight, FontStretch& stretch)
at System.Windows.Media.FontFamily.FindFirstFontFamilyAndFace(FontStyle& style, FontWeight& weight, FontStretch& stretch)
at System.Windows.Media.FontFamily.get_FirstFontFamily()
at System.Windows.Media.FontFamily.get_Baseline()
at Eto.Wpf.Forms.ApplicationHandler.Initialize()
at Eto.WidgetHandler`1.Eto.Widget.IHandler.Initialize()
at Eto.Widget.Initialize()
at Eto.Widget..ctor()
at Eto.Forms.Application..ctor(InitHelper init)
at Eto.Forms.Application..ctor(Platform platform)
at Eto.Forms.Application..ctor(String platformType)
at EtoNet5.Wpf.Program.Main(String[] args)
Thought you might want to know.
The Wpf default app (here
EtoNet5
) runs fine without the trimming.With trimming, the app crashes.
This is
Eto.Forms 2.5.11
The publish profile
FolderProfile.pubxml
is as follows:The windows event log produces three items:
The publish build works as expected but for:
Let me know if you want anything else.
By the way, the Linux Gkt project only produces the following in the
Publish
folder: