Where I can change compiler options for C# project in VisualStudio 2008 (without command prompt). I need it to turn off optimization to compare optimized IL-code and unoptimized IL-code.
+3
A:
[Right Click the Project] -> Properties -> Build -> Optimize Code
John Gietzen
2009-10-16 18:20:24
A:
And just as info: If you run in the debugger you will always get completely unoptimized execution. Regardless of the settings.
Foxfire
2009-10-16 18:22:14
That is not true. If you optimize, some lines may not execute, such as unused local variables and etc...
John Gietzen
2009-10-16 18:28:55