Problem with SkiaSharp and Visual Studio installer for Winforms app #566
tommiehall
started this conversation in
General
Replies: 1 comment
-
Did you find any fix? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm using a couple controls in a winforms app that I'm writing. The app works fine on my machine. I'm using the Visual Studio installer to create an installation package so that others may install the software on their machines. The installer works and installs the software, but when I go to one of the forms that is using a LiveCharts control, the application throws an exception stating that:
************** Exception Text **************
System.TypeInitializationException: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception. ---> System.DllNotFoundException: Unable to load library 'libSkiaSharp'.
at SkiaSharp.LibraryLoader.LoadLocalLibrary[T](String libraryName)
at SkiaSharp.SkiaApi.<>c.<.cctor>b__1831_0()
at System.Lazy
1.CreateValue() at System.Lazy
1.LazyInitValue()at System.Lazy`1.get_Value()
at SkiaSharp.SkiaApi.sk_colortype_get_default_8888()
at SkiaSharp.SKImageInfo..cctor()
--- End of inner exception stack trace ---
at SkiaSharp.Views.Desktop.SKControl.CreateBitmap()
at SkiaSharp.Views.Desktop.SKControl.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
All of the .dlls are present, so I'm not sure what's going on. I also don't know what info would be helpful so I didn't dump everything on here. If anyone has seen this, or needs some other info to possibly figure this out, any info is welcome.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions