使用C#搜索Assembly GAC [英] searching for Assembly GAC using C#

查看:104
本文介绍了使用C#搜索Assembly GAC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种搜索某个dll的存在的方法,该dll可能会或可能不会在GAC中加载.有理想吗?
很抱歉,我需要在应用程序中执行此操作,以查看所有组件(dll)是否都是最新的.

I am looking for a way to search for the existence of a certain dll that may or may not be loaded in the GAC. Any ideal?
I''m sorry I need to do this from within a application to see if all the components (dll) are current.

推荐答案

只需转到GAC文件夹并看看该dll是否存在.
转到->开始->运行.在此处键入assembly,然后按Enter.您将能够看到GAC文件夹.
Just go to the GAC folder and see if that dll is there.
Goto->start->run. Type assembly here and press enter. You will be able to see the GAC folder.


使用本文来获取系统GAC当前内容的列表:

未公开文档的融合 [
Use this article to get a list of your current contents of your systems GAC :

Undocumented Fusion[^]


hi 我发现这段代码会有所帮助.该代码将列出GAC中加载的所有dll.
http://www.dreamincode.net/code/snippet2001.htm
hi I found this bit of code that will help. The code will list all the dll that are loaded in GAC.
http://www.dreamincode.net/code/snippet2001.htm


这篇关于使用C#搜索Assembly GAC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆