Open rquinio opened 7 years ago
CSharpImageLibrary is not portable to Mono. Exception at runtime:
System.TypeInitializationException: The type initializer for 'CSharpImageLibrary.General.ImageEngine' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
at CSharpImageLibrary.General.ImageEngine..cctor () [0x00001] in <3dc04d04432f426a9b607a579ef3b5a7>:0
--- End of inner exception stack trace ---
at CSharpImageLibrary.General.ImageEngineImage.LoadFromFile (System.String imagePath, System.Int32 desiredMaxDimension, System.Boolean enforceResize) [0x00013] in <3dc04d04432f426a9b607a579ef3b5a7>:0
at CSharpImageLibrary.General.ImageEngineImage..ctor (System.String imagePath) [0x00008] in <3dc04d04432f426a9b607a579ef3b5a7>:0
at PortraitBuilder.Model.Portrait.Sprite.Load (System.String filePath) [0x00011] in C:\Users\Romain\git\PortraitBuilder\PortraitBuilder\Model\Portrait\Sprite.cs:33
at PortraitBuilder.Engine.PortraitRenderer.LoadSprite (PortraitBuilder.Model.Portrait.Sprite sprite, System.Collections.Generic.List`1[T] activeContents) [0x000d5] in C:\Users\Romain\git\PortraitBuilder\PortraitBuilder\Engine\PortraitRenderer.cs:151
at PortraitBuilder.Engine.PortraitRenderer.DrawLayer (PortraitBuilder.Model.Portrait.Layer layer, System.Drawing.Graphics g, PortraitBuilder.Model.Portrait.Portrait portrait, System.Collections.Generic.List`1[T] activeContents, System.Collections.Generic.Dictionary`2[TKey,TValue] sprites) [0x00053] in C:\Users\Romain\git\PortraitBuilder\PortraitBuilder\Engine\PortraitRenderer.cs:63
Ubuntu (on Windows) with Mono 5.14:
MacOS with Mono 5.8:
It now starts on Linux and MacOS. But there's still a big issue with the portrait being blank (though the dds portrait frames strangely render fine)... Also some dropdown size issues, plus some panel overflows.
cf failed build https://travis-ci.org/rquinio/PortraitBuilder/builds/141745957