Debug.Assert Appears in Release Mode

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

    Do you use any kind of build process, such as Nant or MSBuild, or even a web-deployment project?

    Also, make sure that in release mode, go to your project properties and check the 'Define DEBUG Constant' isn't checked.

提交回复
热议问题