Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

c# compiler: get intermediate output [closed]

Is there a way to instruct c# compiler to output source at different stages of compilation: source after syntactic sugar removed, ..., IL.

Perhaps some tools (Resharper?) do this, but I'd like to know how they do that.

like image 309
ren Avatar asked Dec 04 '22 04:12

ren


1 Answers

No there is not. The C# compiler doesn't produce any intermediate output. It either produces errors / warnings or an assembly.

Getting the IL can be done with ildasm. This is a tool that ships with .Net that will display the raw IL for assemblies

  • http://msdn.microsoft.com/en-us/library/aa309387(v=vs.71).aspx
like image 198
JaredPar Avatar answered Dec 28 '22 12:12

JaredPar