I decided to make something really simple -
WinForms application with a text box for C # code and a button. When the button is clicked, I save the contents of the text field in the temp.cs file, call csc.exe (Process.Start ()) with the file name as a parameter, so that it will be compiled. This assumes that I set the PATH variables and thatβs it.
When csc.exe displays syntax errors and so on, how can I return it and show it in another text field in my application?
NOTE My goal is not only to simply "build the C # code from my application (depending on what is possible)" .. this is to get csc.exe output
user529141
source share