Dynamic Code Compliation

My day job is working in the IT department for a school district.  It's an environment where I need to automate a bunch of tasks, and the parameters of the tasks frequently change. I currently have the system set up so that it runs the tasks through a VB.Net console app, and it works.  But, I have to recompile the app every time it changes.  I needed something more flexible.

 So, I found this article and example that essentially takes a text file that contains VB code, compiles it and runs it on the fly.  I'm currently implementing it, and hope that it will streamline my processes greatly.

Here's the link to the article and code.

1 Comment

  • Why not store the task configuration into an XML file, and then have your program use that for its task list. This way, you will only need to modify simple XML to add or change tasks. You can even right a Windows Forms UI to edit the XML File!

Comments have been disabled for this content.