> Try this:
>
>        AssemblyNameReference anr;
>                ...
>                anr.Flags &= ~AssemblyFlags.PublicKey;
>                anr.HashAlgorithm = AssemblyHashAlgorithm.None;
>                anr.PublicKey = null;
>

Works on Mono but doesn't seem to work for the .Net :(

The unsigned resulting assembly doesn't load and does not pass the PEVerify
(I get the message "File not found or has bad headers.")

I tried to disassemble/reassemble the assembly using ILDASM/ILASM... the
resulting assembly DOES work !!!!

--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---

Reply via email to