Blog Home  Home RSS 2.0 Atom 1.0 CDF  
Hairy Spider Blog - MSIL Addin
A web of intrigue
 
 Saturday, November 05, 2005

What with the advent of .Net 2.0 and a request from geniusleft. I've reworked my original MSIL addin for SnippetCompiler to work the version 2.0 beta.

Again you can download the source for MSIL2.0 for SnippetCompiler. You'll have to build it against .net version2. MSBuild seems to to a good job for me.

Usual caveats apply - remember to change the path to ILDASM (Line 88 of Class1.cs) to the copy you have on your machine.


11/5/2005 8:25:14 PM (GMT Standard Time, UTC+00:00)  #      .net | c-sharp | MSIL Addin  | 
 Thursday, October 20, 2005

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.
10/20/2005 6:25:49 PM (GMT Daylight Time, UTC+01:00)  #      c-sharp | MSIL Addin  | 
Copyright © 2008 Rhys Jeremiah. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: