Is there a way to execute command line and compile other c# code in a c# program?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming that the computer you wish to compile the C# code on has a C# compiler installed, it is possible.
Here is some example code for accessing the command line
And how to use the C# Compiler
cscfrom the command lineBoth references pulled from the first result in Google