简体   繁体   中英

how to programmatically compile code in text box using c# compiler

Image Problem

I want Run String Code In C# Compiler Please Ineed Help For Complet My project

Your project description is a bit short: You want to execute c# code in a windows application and it should be entered in a text box. Maybe using a scripting engine like CS-Script could be a solution, too.

  1. You can test the code entered in the text box and execute it there.
  2. and you can save the text in a file and execute it using a second application as "script executer"
  1. Prepare the code you wanted to compile.
  2. Write it to a temp file.
  3. Kick off csc.exe

Read more here: https://msdn.microsoft.com/en-us/library/78f4aasd.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM