Adding a embedded resource to a resource is failing
I have this embedded resource:
I'm trying to use it inside another resource:
But I'm getting the following error:
7 Replies
Have you defined them in the same file?
No, they are in separated files
Ah, but I did create another embedded resource inside the same file as the Image embedded resource
Try moving them to separate files and see if that helps
Yeah, that solves the problem
Not much ash can do about module dependencies like that
Do we have somewhere in the docs saying that you can't create more than one embedded resource in the same file?
I don't think so, although its not necessarily the case that you can't do that
but some configurations will be problematic because of compile time dependencies on modules in the same file
But we could put a note to this effect in the embedded resource guide to point people in the right direction. i.e just advise that they use separate files for each embedded resource.