Compiler options for a C # project

Where can I change compiler options for a C # project in VisualStudio 2008 (no command line). I need to turn off optimization to compare optimized IL code and unoptimized IL code.

+2


source to share


3 answers


[Right click on project] → Properties → Build → Optimize Code



+3


source


Project Properties => New => Uncheck Optimize Code



+2


source


And just like the info: if you run in the debugger, you always end up with completely unoptimized execution. Regardless of the settings.

0


source







All Articles