gpt4 book ai didi

.net - 我怎么知道 dll 不是调试版本

转载 作者:行者123 更新时间:2023-12-04 16:57:10 24 4
gpt4 key购买 nike

我如何确定我的生产服务器使用发布版本的 dll。有没有办法在dll中找到该信息?

重复:

  • How to tell if .net app was compiled in DEBUG or RELEASE mode?
  • How to check if DLL is debug-compiled
  • 最佳答案

    如果是 c# DLL 那么你可以使用 ildasm (Program Files\Microsoft SDKs\Windows\v6.0A\bin\ildasm.exe) 来找出这个信息。

    1) 将 DLL 拖入 ILDASM

    2) Dbl-单击 list

    3)寻找:

    //.custom 实例 void [mscorlib]System.Diagnostics.DebuggableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggableAttribute/DebuggingModes) = ( 01 nn nn nn nn nn nn nn )

    4) 对于 DEBUG DLL,它将是 ( 01 00 07 01 00 00 00 00 ) 并用于发布
    (01 00 02 00 00 00 00 00) 或 (01 00 03 00 00 00 00)

    如果您需要更多信息,请告诉我!顺便说一句,这显然是非程序化的解决方案。

    关于.net - 我怎么知道 dll 不是调试版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/638104/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com