Determine if GAC'ed & NGen'ed assemblies are being used

后端 未结 3 1428
执念已碎
执念已碎 2020-12-14 21:42

How do I determine if the Native images are being used without the Loader verifing the signature of the assembly at runtime, or even using the GAC\'ed assembly?

I ha

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-14 22:22

    You can easily see it from the Fuslogvw.exe tool. Start it from the Visual Studio Command Prompt. Configure it with Log Categories = Native Images, Settings + Log all binds to disk. Run your program. Back to fuslogvw, Refresh. It will show you a list of all assemblies that got loaded.

    Double-click an entry to see how the assembly got loaded. If it came from the GAC, you'll see:

    LOG: IL assembly loaded from C:\Windows\assembly\GAC_MSIL\blahblah

    If the Ngen-ed images was used, you'll see:

    LOG: Bind to native image succeeded.

提交回复
热议问题