Actually, the code that I posted above is actually from Reflexil.
Here's the original code from CecilHelper.cs:
public static void RemoveStrongName(AssemblyDefinition asmdef)
{
asmdef.Name.PublicKey = new byte[0];
asmdef.Name.PublicKeyToken = new byte[0];
asmdef.Name.Flags = AssemblyFlags.SideBySideCompatible;
}
public static void
RemoveStrongNameReference(AssemblyNameReference andef)
{
andef.PublicKeyToken = new byte[0];
}
it's practically identical, and yet, there doesn't seem to be a way to
get it working...
On Nov 2, 4:28 am, "Lotfi Gheribi" <[EMAIL PROTECTED]> wrote:
> I believe Reflexil, which uses Cecil, allows to remove strongname
> signatures. have a look at its source code.
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---