The opinions expressed herein are my own personal opinions and do not represent
my employer's view in any way.
I had some very specific things to do in my last project that required coding a few things in MSIL and injecting it into an assembly. I did the job with ILASM, ILDASM and notepad. I was in a hurry so I wasn’t able to search for a better or more elegant way to do it. However, a few days later, I searched for low level tools that could help me in the future with MSIL related tasks for the Microsoft.NET Framework. I found some interesting things:
* ILIDE#: a complete IDE to compile MSIL assembler to an assembly. It even has debugging support!
You can read more about it here:http://geekswithblogs.net/kakaiya/archive/2005/06/16/43953.aspx * Mike Stall’s tool to allow inline MSIL in C#: the MSIL code is injected between #if #endif directives and then injected in the resulting assembly using a post-build step.For more information visit:http://blogs.msdn.com/jmstall/archive/2005/02/21/377806.aspx* Craig Skibo’s Visual IL language service project with source code! He provides the full source code to integrate IL support in visual studio.Here is the post with more information about it:http://blogs.msdn.com/craigskibo/archive/2005/12/07/501208.aspx* Deblector: a plugin for reflector to support debugging an assembly. For example, you can attach to a running process and set a breakpoint in a framework method in order to see what really happens. Awesome stuff even if it’s in alpha stage.More information about deblector here:http://www.felicepollano.com/CategoryView,category,Deblector.aspxI tried it but it didn’t work here. Maybe it was because the current version of reflector is newer than the one used to test the latest version of deblector but definitely I’ll keep an eye on this project!