Common Avalonia Assets folder shared by projects? #15760
-
In my C# project file I have:
I can then successfully access image files at runtime as follows: However, I'd like to share an Assets folder among many applications - this folder would be independent of the project folder. How would I do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
AvaloniaResource
is baked into the assembly. You're going to have to load from disk (not through the asset system) instead unless you write your own approach to load a DLL at runtime (eg. dynamic plugin) which contains the resources.