I am using Visual Studio 2010 C #.
I recently changed all projects in an x64 solution using the configuration manager in addition to changing the assembly properties for all projects. Since then, the #if (DEBUG)
directive does not work as if the DEBUG constant disappeared.
#if (DEBUG) // This code does not execute even in debug mode!
I also noticed that instead of the usual bin\Debug
and bin\Release
folders, projects are now compiled to bin\x64\Debug
and bin\x64\Release
.
I searched, but most of the related results described how to configure x64
if it does not display by default.
source share