确定DLL引用了什么 [英] Determining what a DLL references

查看:81
本文介绍了确定DLL引用了什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好!

如果我有一个第三方发送给我的DLL,是否有办法找出其中是否包含任何System.IO引用?我想确保该DLL不会读写磁盘.

Hi there!

If I have a DLL that has been sent to me by a third party, is there a way to find out if it has any System.IO references in it? I want to be sure that the DLL does not read or write to my disk.

推荐答案

如果DLL是.Net DLL,则可以使用Reflector对其进行反汇编.因此您可以看一下实际的代码.也有Reflector的插件,使您可以将DLL的所有代码一次输出到CS文件的目录中.然后,您可以对它们执行文本搜索,以查看是否找到"System.IO".可能有一种更简单的方法,但这是我所知道的唯一方法.
If the DLL is a .Net DLL, you can use Reflector to disassemble it so you can take a peek at the actual code. There are also plugins for Reflector that allow you to output all the code for the DLL at once into a directory of CS files. You could then perform a text search on them to see if you find "System.IO". There might be an easier way, but that''s the only way I know of.


如果未安装反射器,请使用"dumpbin".
Use "dumpbin" if you do not have reflector installed.


这篇关于确定DLL引用了什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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