2

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.

AndreyAkinshin
  • 18,603
  • 29
  • 96
  • 155

3 Answers3

3

[Right Click the Project] -> Properties -> Build -> Optimize Code

John Gietzen
  • 48,783
  • 32
  • 145
  • 190
2

Project Properties => Build => Uncheck Optimize code

Moayad Mardini
  • 7,271
  • 5
  • 41
  • 58
0

And just as info: If you run in the debugger you will always get completely unoptimized execution. Regardless of the settings.

Foxfire
  • 5,675
  • 21
  • 29