How can I disable compiler optimization in C#?

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

How can I disable compiler optimization in C#?

5条回答
  •  长情又很酷
    2020-12-03 04:54

    At the command line (csc), /optimize-

    In the IDE, project properties → build → "optimize code"

    For some JIT optimizations, you can use [MethodImpl(...)]

提交回复
热议问题