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
Post a Comment