I know that it's been a long time since this post has been posted (no pun intended) but I feel that the proper way would be to use the: Microsoft.CSharp.CSharpCodeProvider class. This has several methods which will compile from strings or files, you can compile any form of .NET assembly using this. The equivalent VB is: Microsoft.VisualBasic.VBCodeProvider Hope this enlightens you Ed