如何禁用在C#编译器优化? [英] how can i disable compiler optimization in c#?
本文介绍了如何禁用在C#编译器优化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何禁用编译器优化的C#??
how can i disable compiler optimization in c#??
推荐答案
在命令行(CSC), /优化 -
At the command line (csc), /optimize-
在IDE中,项目属性 - >建设 - >优化code
In the IDE, project properties -> build -> "optimize code"
有关的部分的JIT优化,可以使用 [MethodImpl(...)]
For some JIT optimizations, you can use [MethodImpl(...)]
这篇关于如何禁用在C#编译器优化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文