Debug.Assert Appears in Release Mode

后端 未结 6 2018
北海茫月
北海茫月 2021-01-07 21:40

We all know that Debug.Assert will not be compiled into the dlls when compiled in release mode. But for some reason Debug.Assert did appea

6条回答
  •  南方客
    南方客 (楼主)
    2021-01-07 22:13

    Check the DefineConstants property in your project file, it should be :

    • DEBUG;TRACE for Debug configuration
    • TRACE for Release configuration

    Check that you haven't any #define DEBUG in your code.

提交回复
热议问题