Hi all!

first of all, congrats on your great work jb! :)

secondly, why am i posting:
at the moment i am working on my masterthesis and i am using
Mono.Cecil for a part. why do i use it? One part of my thesis consists
of marking methods in existing assemblies as virtual, to enable
subclass proxies to override the methods for example.

as you can see, there are several problems popping up. as soon as i
modify a strongly named assembly, the strong name is broken and the
application cannot be run anymore (registering the assembly as not to
be verified is not an option). as soon as i recalculate the hash and
resign the assembly, without having the original key, the references
are broken and the application cannot be run anymore.

the solution would be:
resign the targeted assemblies and updating the references of the
assemblies referencing them. these steps have to be done recursively
until no references "from above" exist anymore.

my problem at the moment is, that i dont see any possibility to sign
an assembly in memory.
the mono.cecil functionality of AssemblyDefinition.Write("file",
keypair); works great, but since i have the whole tree of referencing/
depending assemblies in memory, i would like to sign the assemblies in
memory, in order to do the recursive resigning/reference updating
until all assemblies are valid again, and then serialize all the
assemblies once.
i mean, it would be possible to serialize the assemblies one by one in
order to get the valid assemblies, but then i would have to reload the
assembly every time to have it in memory and to be able to update the
references.

i searched the group already and found another topic where you
recommended mono.security, but again, that doesnt allow me to sign an
assembly in memory.

is there a functionality like "AssemblyDefinition Write(keypair);" ->
not void as return, but the updated AssemblyDefinition as return
value? or can it be done easily? or how could i achieve the same
result? it would be great if serializing and then loading the assembly
into memory again is not the only option :)

thx
Raph

-- 
--
mono-cecil

Reply via email to