How to get runtime version of an managed assembly
Which section in ildasm开发者_如何学Go gives me this? Metadata?
Thanks for looking..
Do you mean which version of the framework it's built against? The manifest will contain an assembly reference like this:
// Metadata version: v4.0.30319
.assembly extern mscorlib
{
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
.ver 4:0:0:0
}
That's an assembly targeting .NET v4, for example.
精彩评论