why not just build a dll and use it??

simple to do, works everytime.


no magic, just build a class-lib project and then ref-the dll in another project.