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
c # .net visual-studio-2008


source to share


3 answers


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



+3


source to share


Project Properties => New => Uncheck Optimize Code



+2


source to share


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 to share







All Articles
Loading...
X
Show
Funny
Dev
Pics