0

当我将 dumpbin \clrheader 用于一个程序集时,我发现以下内容 - 由于我在 .net4.5 下编译,CLR 版本将如何是 2.05?

文件 SampleApp.exe 的转储

文件类型:可执行图像

clr 标题:

          48 cb
        2.05 runtime version
        2080 [     668] RVA [size] of MetaData Directory
       20003 flags
               IL Only
               32-Bit Required
               32-Bit Preferred
     6000001 entry point token
           0 [       0] RVA [size] of Resources Directory
           0 [       0] RVA [size] of StrongNameSignature Directory
           0 [       0] RVA [size] of CodeManagerTable Directory
           0 [       0] RVA [size] of VTableFixups Directory
           0 [       0] RVA [size] of ExportAddressTableJumps Directory
           0 [       0] RVA [size] of ManagedNativeHeader Directory

概括

    2000 .reloc
    2000 .rsrc
    2000 .text
4

1 回答 1

0

因为这个工具所说的“运行时版本”实际上并不是运行时版本,与它关系不大。这是一个误称。您不能用于dumpbin打印实际的运行时版本。相反,您可以使用ildasmwhich 将运行时版本称为“元数据版本”。您可以在程序集的清单中找到元数据版本。对于 .NET 4.x,运行时版本为 4.0.30319。

于 2016-05-10T12:07:40.353 回答