如何识别 DLL 是调试版本还是发布版本(在 .NET 中) [英] How to identify if the DLL is Debug or Release build (in .NET)

查看:38
本文介绍了如何识别 DLL 是调试版本还是发布版本(在 .NET 中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能的重复:
如何判断.NET 应用程序是在 DEBUG 还是 RELEASE 模式下编译的?

我确定以前有人问过这个问题,但谷歌和 SO 搜索失败了.

I'm sure this has been asked before, but google and SO search failed me.

如何确定 DLL 是发布版本还是调试版本?

How can I identify if a DLL is a release build or debug build?

推荐答案

执行此操作的唯一最佳方法是检查已编译的程序集本身.Rotem Bloom 在此处找到了一个非常有用的工具,称为.NET Assembly Information".安装后,它会将自己与 .dll 文件关联起来以自行打开.安装后,您只需双击程序集即可打开,它将为您提供程序集详细信息,如下面的屏幕截图所示.在那里你可以确定它是否是调试编译与否.

The only best way to do this is to check the compiled assemblies itself. There is this very useful tool called '.NET Assembly Information' found here by Rotem Bloom. After you install this, it associates itself with .dll files to open with itself. After installing you can just double-click on the Assembly to open and it will give you the assembly details as displayed in the screenshots below. There you can identify if it's debug compiled or not.

希望这有帮助..

这篇关于如何识别 DLL 是调试版本还是发布版本(在 .NET 中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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