S
Steve Richter
my app needs to be able to receive c# source code from a trusted
remote system, compile that c# code, then run it.
assuming the way to do this is to use the Process class:
Process p = new Process( ) ;
p.StartInfo.FileName = "csc.exe" ;
p.StartInfo.Arguments = "csc command line string" ;
p.Start( ) ;
p.WaitForExit( ) ;
do I need to, how do I first run the SDKVARS.BAT file?
how do I set the directories so that the sdkvars.bat and csc.exe files
will reliably be found?
searching this group I read a post saying "c# has an in memory
compiler that can be used". Is there a way to compile c# code w/o
having to spawn the csc.exe process?
thanks,
-Steve
remote system, compile that c# code, then run it.
assuming the way to do this is to use the Process class:
Process p = new Process( ) ;
p.StartInfo.FileName = "csc.exe" ;
p.StartInfo.Arguments = "csc command line string" ;
p.Start( ) ;
p.WaitForExit( ) ;
do I need to, how do I first run the SDKVARS.BAT file?
how do I set the directories so that the sdkvars.bat and csc.exe files
will reliably be found?
searching this group I read a post saying "c# has an in memory
compiler that can be used". Is there a way to compile c# code w/o
having to spawn the csc.exe process?
thanks,
-Steve