Debug.Assert Appears in Release Mode

后端 未结 6 1924
北海茫月
北海茫月 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:04

    I found out the answer; it's because there is a #define DEBUG preprocessor defined at the start of a cs file inside the project. Removing it solves the problem

提交回复
热议问题