I'm using PEVerify to check the assembly I generate using Cecil is correct. 
Sometimes, it outputs a metadata token without an identifier to go with it. 
I want to add identifiers to the output by regex replace and looking up the 
identifiers in Cecil (by using the same AssemblyDefinition that I wrote to 
file). The problem is that when I use assembly.MainModule.LookupToken(new 
MetadataToken(*the token uint I got from PEVerify*)) to find the member 
with that token, I don't get the right member, or I get nothing. So I 
thought PEVerify somehow gives me the wrong token, but when I open the 
assembly using ILSpy, ildasm, or a similar tool, I see that it's the right 
metadata token for that member after all.

What am I doing wrong?

-- 
-- 
--
mono-cecil
--- 
You received this message because you are subscribed to the Google Groups 
"mono-cecil" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to