如何把编译CLI(MSIL)代码把下把面的代码存到一个文本里,比如说就叫hello.txt吧!
..assembly Hello {} .method public static void Main() cil managed { .entrypoint .maxstack 1 ldstr "Hello, world!" call void [mscorlib]System.Console::WriteLine(string) ret }
然后打开vs2005的命令提示行工具输入ilasm hello.txt 就会产生一个hello.exe就完了,我是看了那个ECMA才发现!