AndreyAkinshin
AndreyAkinshin

Reputation: 19011

Compiler options for C# project

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.

Upvotes: 2

Views: 750

Answers (3)

Foxfire
Foxfire

Reputation: 5755

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

Upvotes: 0

Moayad Mardini
Moayad Mardini

Reputation: 7341

Project Properties => Build => Uncheck Optimize code

Upvotes: 2

John Gietzen
John Gietzen

Reputation: 49534

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

Upvotes: 3

Related Questions