Given a single c# source file, I’d like to output IL (not assembled) of that single file such that later I can feed each ‘.il’ file to ilasm to produce assemblies, is this possible?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
So, you probably can’t do this well and in most cases you won’t want to. However it is possible to cut compilation and assembly linking into two stages by building all sources to modules and then linking modules and resources into the final assemblies.
Short answer, getting textual IL out of a C# compiler is not feasible on .Net and in any case, there isn’t much benefit from doing so.