Dynamically creating resource-only dlls

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
 
G

Guest

Dynamic assemblies require System.Reflection.Emit to compile on the fly. That
is where I would start investigating. I have not played around with Resource
only assemblies, personally, but we do have some software that uses Emit
(rules components).


---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top