all groups > dotnet clr > august 2007 >
You're in the

dotnet clr

group:

loading referenced assemblies from a stream or bytes



Re: loading referenced assemblies from a stream or bytes Marc Gravell
8/22/2007 12:00:00 AM
dotnet clr: It looks like the AppDomain.AssemblyResolve only fires after the
event, and doesn't allow you to override the behavior ;-(

Well... once you have loaded one assembly you could perhaps load
pre-emptively by walkint the reference tree (GetReferencedAssemblies).
You need to keep track of what you have loaded, not necessarily to
prevent re-loads (the framework will tae care of this), but more to
prevent cycling (there are loops at the bottom...).

Marc

loading referenced assemblies from a stream or bytes Dave
8/22/2007 1:58:09 AM
I want to be able to read then dynamically load a main and dependent
assemblies from encrypted sources.

I can get the load the first one into memory by using assembly.load from
bytes. Is there a way to do this for the referenced assemblies as well? Not
system assemblies but the others that I create for a solution that are not
part of the main assembly.

Thanks,
Dave
Re: loading referenced assemblies from a stream or bytes Dave
8/23/2007 10:10:28 AM
Thanks Marc. Will look into that.

[quoted text, click to view]
AddThis Social Bookmark Button