SnippetCompiler is one of those must have tools.
I was wondering if I could use it to view the
CIL that the code would produce. I then noticed that it supported add-ins.
I couldn't find many resources to help me write an addin but
that doesn't stop me any other time. So I reached for my handy
reflector to find out what makes it tick.
Well after disassembling to my heart content I finally found out how to
add a toolbar, button, and with a bit of reflection managed to expose
the CompileAndRun functionality. Sadly I ran out of steam trying to
generate IL from an assembly, so instead I cheated by using the result
of a call to ILDASM.
You can download the visual studio project that will allow you to build the
msil addin for Snippet Compiler Remember to set the path to ILDASM.
Usual caveats apply - atleast this one doesn't mess with the registry.