Why not embed the resources in the plug-in assemblies, and use the same
mechanism you use to load the plugins to load their resources?

M

-----Original Message-----
From: Moderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED]] On Behalf Of Peter Zaborski
Sent: 31 May 2002 16:41
To: [EMAIL PROTECTED]
Subject: [ADVANCED-DOTNET] embedding resources

I posted this to the "regular" dotnet mailing list but had no replies.
Perhaps someone on this list has an answer?

I know it's possible to embed resources in an assembly during the
compile
process. Which works fine if you know all the resources you need at that
time. However, I have a situation where I need a resource in my EXE
assembly, but I don't know about the resource until run time. In case
you
are wondering, this is for a "generic container" type application which
loads satellite assemblies containing add-ins via reflection using late
binding -- the container does not know all the add-ins it will use at
compile time. The application and its add-ins are all strictly desk top
WindowsForms, no WebForms stuff at all.

Any one know if it's possible to dynamically (ie. at run time) embed
resources in an EXE assembly? Or in some other way make it appear that
the
resources are embedded in the executing assembly at run time?

You can read messages from the Advanced DOTNET archive, unsubscribe from
Advanced DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to