Compiler options for C# project

懵懂的女人 提交于 2019-12-24 01:56:18

问题


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.


回答1:


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




回答2:


Project Properties => Build => Uncheck Optimize code




回答3:


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



来源:https://stackoverflow.com/questions/1579590/compiler-options-for-c-sharp-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!