I decided to do something really simple -
A WinForms application with a text box for C# code and a button. When the button is clicked, I save the content of the text box to a temp .cs file, invoke the csc.exe (Process.Start()) with the file name as parameter so that it is compiled. This is assuming I set the PATH variables and everything.
When the csc.exe outputs syntax errors and stuff, how can I get it back and show it in another text box in my app?
NOTE My aim is not to just "complie C# code from within my app (in whichever way possible)".. it is to get the output of csc.exe