Hello,
This is in line with expectations.
The class library itself is an encapsulation of Assembly. Therefore, you could not use Assembly to reference the class library.
Class libraries are the shared library concept for .NET. They enable you to componentize useful functionality into modules that can be used by multiple applications. They can also be used as a means of loading functionality that is not needed or not known at application startup. Class libraries are described using the .NET Assembly file format.
This is because when referencing a class library, the project is added to the project as a shared project.
As a shared project, it is possible to release content at compile time to individual projects that reference it.
Unlike most other project types a shared project does not have any output (in DLL form), instead the code is compiled into each project that references it. This is illustrated in the diagram below - conceptually the entire contents of the Shared Project is "copied into" each referencing project and compiled as though it was a part of them. Quated from What is a Shared Project?.
When a shared project is compiled to a dll and introduced into the project as assembly, the resources in the program are not released to the individual projects.
As a result, there is an error that the image file cannot be found in it.
/Resources/CustomLoaderImages/AuroraWaveLoaderImages/aurorawaveloaderimg_4.png: open failed: ENOENT (No such file or directory)
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.