I have a main application, which loads plugins from "./plugins" directory.
The plugins are library assemblies containing UserControls, which use some images (resources).
The problem is that the images are not found when used in the main application.
XamlParseException -> Cannot locate resource 'X.png'
I tried building the resources as "Resource", "Embedded Resource" and "Content", but the exception still persists.
I tried specifying the path to images as
/X.png
and also as (neither works)
pack://application:,,,/<PluginAssemblyName>;X.png
How should I build the image resources so that they are available even after loading the assembly as plugin?