[Looking for Suggestion] Unable to find assembly: SkiaSharp #2589
Unanswered
chaojian-zhang
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Notice a workaround is to copy |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(Originally an issue: #2588)
Hi, thanks for the great library! It has been tremendously helpful in both my personal and professional life!
Right now I am encountering a problem that might not be pythonnet specific but is not obvious to solve and encountered when I use Pythonnet. Specifically, when my project references SkiaSharp which contains native dlls, pythonnet will not be able to load everything properly - it locates the entry assembly fine, but the dependencies are not loaded. The initial import is ok but during runtime an exception is thrown.
Would love to hear any suggestions on solving this problem.
Environment
Below is the entry assembly, which directly references SkiaSharp.
And this is how I am referencing the entry assembly, from some location outside the published folder (notice the same problem happens even if this script is placed directly inside the published folder).
Output:
This is likely due to this folder structure:
See: https://github.com/Charles-Zhang-Python/PythonNetSkiaSharpProblem
This might be related to #468 but is somewhat different since I am not loading the dll directly, and everything is .Net 8 properly.
Beta Was this translation helpful? Give feedback.
All reactions