How can I disable compiler optimization in C#?

后端 未结 5 2055
野性不改
野性不改 2020-12-03 04:08

How can I disable compiler optimization in C#?

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-03 04:58

    You can disable the optimizations in runtime using an .ini file: http://msdn.microsoft.com/en-us/library/9dd8z24x.aspx

    Enter the following text into you .ini [for example Explorer.ini]

    [.NET Framework Debugging Control] 
    GenerateTrackingInfo=1 
    AllowOptimize=0
    

提交回复
热议问题