F
Foehammer
Hello,
I have created an application which will use resources that will be
loaded at runtime. I'd like to package these resources in
resource-only dlls that will be loaded dynamically by my application.
I'm not doing this for localization purposes, but rather as a means to
offer dynamic content in a neatly packaged manner. I may need to add
custom generated code to these dlls soon, so I'd like to have the
resources contained in a resource file embedded in a dll.
I already have written a small app that will combine the required
resources into a .Resource File. Does anyone have any sample code
where they are dynamically creating an assembly and embedding a
resource file in it? It doesn't matter to me how it's done - I've
played with Reflection.Emit and the commandline version of the C#
compiler. Emit doesn't seem like it has the capability to create an
assembly that can be written out to disk and used later. I think the
commandline might work, but I'm unsure how to proceed.
Thanks,
Will
I have created an application which will use resources that will be
loaded at runtime. I'd like to package these resources in
resource-only dlls that will be loaded dynamically by my application.
I'm not doing this for localization purposes, but rather as a means to
offer dynamic content in a neatly packaged manner. I may need to add
custom generated code to these dlls soon, so I'd like to have the
resources contained in a resource file embedded in a dll.
I already have written a small app that will combine the required
resources into a .Resource File. Does anyone have any sample code
where they are dynamically creating an assembly and embedding a
resource file in it? It doesn't matter to me how it's done - I've
played with Reflection.Emit and the commandline version of the C#
compiler. Emit doesn't seem like it has the capability to create an
assembly that can be written out to disk and used later. I think the
commandline might work, but I'm unsure how to proceed.
Thanks,
Will