How to output the generated MSIL code in a separate file? I know there was an compiler option, because I used it (I think in VS2012) for a short time, but I cannot find this option anymore, I cannot even find this option in the compiler options list.
To my knowledge, the only way you can create an IL file of your assemblies is to add Post-build events that will execute when the build is successful.
In VS, you can do this by going to opening Project properties screen, and going to the Build Events
tab.
From there, just set a Post-build event, similar to the one below. Please note, I had to add the reference path of the ildasm.exe application to my Windows PATH environment variable. If you have to do the same, this will require a log out and back in, for it to work.