G
Guest
Hi,
I would like to know how to programmatically embed a non-localizable
resource in assembly. I know I can do this in the IDE (using 'Embedded
Resource' Build Action) or using the C# compiler in the command line like
this:
csc /res:myImage.bmp /out:myassembly.exe /target:exe /recurse:*.cs
and I know I can programatically create the resource at runtime:
Assembly executingAssembly = GetExecutingAssembly();
Stream resourceStream = executingAssembly. GetManifestResourceStream(
"myImage.bmp" );
Bitmap image = new Bitmap(resourceStream);
But how I can programmatically generate an assembly that contains some
non-localizable resources, e.g like an XML file, a bitmap, and some arbitrary
binary content?
Thanks,
Notre
I would like to know how to programmatically embed a non-localizable
resource in assembly. I know I can do this in the IDE (using 'Embedded
Resource' Build Action) or using the C# compiler in the command line like
this:
csc /res:myImage.bmp /out:myassembly.exe /target:exe /recurse:*.cs
and I know I can programatically create the resource at runtime:
Assembly executingAssembly = GetExecutingAssembly();
Stream resourceStream = executingAssembly. GetManifestResourceStream(
"myImage.bmp" );
Bitmap image = new Bitmap(resourceStream);
But how I can programmatically generate an assembly that contains some
non-localizable resources, e.g like an XML file, a bitmap, and some arbitrary
binary content?
Thanks,
Notre