Scripting under .NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi. Is there any kind of engine that comes with .NET to allow me to create a
file which JIT compiles and runs as a "script" in Windows? Meaning, is there
a way to do this where I don't have to build a whole Project and everything
but I can still create something in C#?

Alex
 
Alex Maghen said:
Hi. Is there any kind of engine that comes with .NET to allow me to create
a
file which JIT compiles and runs as a "script" in Windows? Meaning, is
there
a way to do this where I don't have to build a whole Project and
everything
but I can still create something in C#?

I don't know the details, but System.Reflection should help you do this.
Even simpler, I believe the C# command-line compiler comes with the .NET
framework, you may be able to write C# code to a file, execute the
command-line compiler, then run the result. I've not tried either myself, I
may be wrong.

-- David
 
Hi Alex,

As other members has suggested, start from .NET framework 2.0, for such
custom script execution or dynamic code execution in .net application, it
is recommended that you use the .NET Reflection interface to implement such
functionality. The origionally VSA script engine is deprecated now.

#Dynamically executing code in .Net
http://www.west-wind.com/presentations/dynamicCode/DynamicCode.htm

http://msdn2.microsoft.com/en-US/library/a6x89439.aspx

Hope this also helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hello Alex,

http://groups.google.com/group/micr...read/thread/a2bb927a8cb4c698/422214ffb75dd6a3

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

AM> Hi. Is there any kind of engine that comes with .NET to allow me to
AM> create a file which JIT compiles and runs as a "script" in Windows?
AM> Meaning, is there a way to do this where I don't have to build a
AM> whole Project and everything but I can still create something in C#?
AM>
AM> Alex
AM>
 
Back
Top