How to compile CIL code?

我怕爱的太早我们不能终老 提交于 2019-12-01 06:26:50

问题


I have a code written in CIL. Let's say, a file called some_il_code.il holds it. I want to compile it to create a managed exe assembly.

How do I achieve that?


回答1:


You can use the ilasm tool.

ilasm /exe Your.il /deb=opt
peverify /md /il Your.exe

ilasm compiles it, peverify verifies it.



来源:https://stackoverflow.com/questions/12741607/how-to-compile-cil-code

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