Have you thought of doing this manually, with the help of the csc.exe compiler and some Reflection?
Depending on what language you want to use for scripting, and how complex your scripts will be, you could allow users to type in the script, then emit what they typed as a method body (combining it with a template) in a C# class. Compile the class, and if everything seems OK, execute the assembly. I know it sounds crude, but it can in fact be a great shortcut solution. My shop has done extensive parsing/compilation work before and I can tell you, if this is not a core feature of your product, try to stay away from it, and use the code snippet combination + compilation I suggest above. Re: VBA and obsolescence, I don't feel knowledge enough to comment in depth, but a bit of general advice -- try to stay away from anything that involves heavy COM interop _and_ a complex object model. [EMAIL PROTECTED] -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Terry Griffin Sent: Friday, June 08, 2007 4:10 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: [ADVANCED-DOTNET] User scripting for a .NET app We need to add the ability for users to execute scripts for our application, which runs a scientific tool. The users will be scientist, not professional programmers. A few years ago I would have used the Active Scripting objects and supported JScript scripts accessing our app's object model. Our new application is all .NET based so it seems the Active Scripting method is a little out of date (but could still be used if that is the best choice). I found the Microsoft.Vsa objects which are the replacement for Active Scripting but they are marked 'obsolete'. What is the best method for supporting scripting of a .NET application by users? Terry Griffin Sr. Software Engineer ALIS Corporation 10 Technology Drive Peabody, MA 01960 USA [EMAIL PROTECTED] (978) 826-1569 =================================== This list is hosted by DevelopMentor. http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com