add manifest resources at runtime

  • Thread starter Thread starter Bamse
  • Start date Start date
B

Bamse

hello,

it is well known that manifest resources (strings, pictures & ...) can be
added at design time, compiled into an assembly and used/read at runtime
(assembly.GetManifestResourceStream(string) );

is there a way to ADD them at runtime? (i suppose that recompiling the
assembly is a must in this scenario)
like: i start the app, compute some value, (current date, par example) and
add it to the assembly and recompile, to be used some other time;

thank you,
Daniel
 
If you want to do that from runtime you need to look at the reflection and
compiler services. Check System.Reflection and Microsoft.CSharp namespaces.

hope this helps

Fitim Skenderi
 
Back
Top