Hi Raph,

I did it write before I wrote the assembly to disk. I may have gotten
lucky as I didn't have very complex assembly references. The order in
which I did this (that seems to work):

1. TypeA in AssemblyA has an attribute [Foo(typeof(TypeB))] where
TypeB is in AssemblyB which is signed.
2. Remove the Strong Name Key from the reference to AssemblyB in
AssemblyA.
3. Fixup the attributes.
4. Write AssemblyA.
5. Remove the strong name key from AssemblyB.
6. Write AssemblyB.

-- Kevin J.

On Mar 7, 10:20 am, Raph <[email protected]> wrote:
> hi again, kevin and jb
>
> kevin, when do you run through all the attributes?
> in my case, i get a filenotfoundexception during touching/resolving
> all the types, since i do the signing/writing and resetting the
> references in ONE single run through all affected assemblies. so there
> rises a problem when i already wrote an assembly to the disk, with a
> different key for example and then try to resolve a type argument in
> an attribute that still references the assembly with the old key.
> i have the bad feeling, that i'm gonna have to update all the
> references manually... is there any other way, possibly already
> implemented in cecil?
>
> thx, raph

-- 
--
mono-cecil

Reply via email to