문제

I've used Microsoft ILGenerator and its Emit member. I want to know where I can find the output il file which is generated by it.

도움이 되었습니까?

해결책

The generated IL is not saved to disk automatically. You need to first ensure that your AssemblyBuilder is created (through AppDomain.DefineDynamicAssembly()) with an AssemblyBuilderAccess of Save or RunAndSave.

Once you have generated all your IL, you can then use the Save() method on the AssemblyBuilder to save the generated assembly to disk.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top