C#: Debug.Assert() in Release-Build-DLL seems to be activated by Debug-Build-Project -


i have dll lot of debug.assert() calls. have built dll release, assert not active (i checked small test programm). use dll in software project debug-build , reason asserts dll active again. debug definition of project reactivate asserts in dll? (visualstudio 2013)

the documentation states:

when c# compiler encounters #if directive, followed #endif directive, compile code between directives if specified symbol defined.

considering should not see these asserts, because when compiling in release mode code should have been left out.

you try decompile release assembly , see if code generated.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -