Asp.net release build vs debug build

后端 未结 4 2076
臣服心动
臣服心动 2020-11-30 14:53

How do I determine if my app was compiled as \"release\" instead of \"debug\"? I went to VS 2008 Project Properties > Build and set the configuration from Debug to Release b

4条回答
  •  星月不相逢
    2020-11-30 15:26

    You need to look for more than IsJITTrackingEnabled - which is completely independent of whether or not the code is compiled for optimization and JIT Optimization.

    Also, the DebuggableAttribute is present if you compile in Release mode and choose DebugOutput to anything other than "none".

    Please refer to my posts: How to Tell if an Assembly is Debug or Release and How to identify if the DLL is Debug or Release build (in .NET)

提交回复
热议问题