本文介绍了如何确定装配是否已被ngen'd?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何确定特定的.Net程序集是否已经生成?我需要从代码检查.即使调用命令行也可以.目前,我看不到任何确定方法.

How can you determine whether a particular .Net assembly has already been ngen'd or not? I need to check from code. Even invoking the command-line would be fine. At the moment I can't see any way of determining this.

推荐答案

您可以尝试在"ngen缓存"(C:\ Windows \ assembly \ NativeImages_v2XXXXXXX)中找到程序集.

You can try to find your assembly in "ngen cache" (C:\Windows\assembly\NativeImages_v2XXXXXXX).

已执行的程序集将具有以下格式名称: [基本名称]. ni .[基本扩展名] .

Сached assemblies will have the following format name: [basename].ni.[baseextension].

这篇关于如何确定装配是否已被ngen'd?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 15:10