markneustadt.com

Release Mode error message

We’re approaching delivery of the baby!  In the next few months, we’ll be releasing our product.  This is great news as it’s been a long time coming.  As is the norm, we’ve been developing our product in Debug mode.  While in Debug mode, Visual Studio will generate extra files to allow stepping through the code.  This is a great thing for creating the initial code, but it’s not necessary for code that’s deployed to the world at large.

When I switched Visual Studio over from Debug mode to Release mode, I got a weird error.

The text of the error reads as follows:

The following module was built with either optimizations enabled or without debug information:
** DLL FILE PATH **
To debug this module, change its project build configuration to Debug mode.  To suppress this message, disalbe the 'Warn if no user code on launch' debugger option.

After proceeding, the code ran just fine.  I didn’t want to have to deal with the error message with every build though.  Since it’s been so long since I’ve posted a technology article here, I thougth this would be a good one.

To get rid of the error, you have to go to Tools > Options in the Visual Studio menu.

From there, you can find the “General” options in the “Debugging” category.  There, you will see “Enable Just My Code (Managed)”.  A sub-item under that is the checkbox you’re looking for. 

Uncheck the “Warn if no user code on launch” checkbox then click OK and you’re done!

Scroll To Top