Hello.
I apologize for posting here, but is there any way we can compress the 
embedded resource?
With respect,
Adrian

On Monday, September 10, 2012 at 10:38:19 AM UTC+3, Jb Evain wrote:
>
> Hey, 
>
> Visual Studio usually prefixes the resource name with a namespace 
> based on the folder they're into. 
>
> So  instead of “EmbeddedBinaryFileName”, they may be in 
> NamespaceDummy.EmbeddedBinaryFileName or 
> NamespaceDummy.Resources.EmbeddedBinaryFileName. 
>
> Make sure you match the original name of the resource. 
>
> Have a good night! 
>
> Best, 
>
> Jb 
>
> On Mon, Sep 10, 2012 at 6:16 AM, cryogen <[email protected] <javascript:>> 
> wrote: 
> > Hi, 
> > 
> > I want to embed a binary resource (byte[] array) to an existing 
> assembly, so 
> > it can be read by the assembly like this: 
> > 
> > MemoryStream streamSelf = new 
> > MemoryStream(global::NamespaceDummy.Resources.EmbeddedBinaryFileName); 
> > 
> > so I was trying to do: 
> > 
> > EmbeddedResource  res = new EmbeddedResource("EmbeddedBinaryFileName", 
> > ManifestResourceAttributes.Public, binaryFile.ToArray()); 
> > assembly.MainModule.Resources.Add(res); 
> > 
> > but after modifications, original assembly can't find this resource. If 
> I 
> > add it manually within Visual Studio and I open it with .NET Reflector I 
> can 
> > see resources has different layout. 
> > 
> > It's 5am and I need some help :) 
> > 
> > 
> > -- 
> > -- 
> > mono-cecil 
>

-- 
-- 
--
mono-cecil
--- 
You received this message because you are subscribed to the Google Groups 
"mono-cecil" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to