I have designed my very own language that I, in the end, translate to C# code. Now I want to compile this C# code using the C# compiler through my Windows Forms Application.
Where is the actual compiler file located and how do I compile my code (currently placed in a string)??
It sounds like you are looking for the CSharpCodeProvider. http://support.microsoft.com/kb/304655, or MSDN have examples.
You can use C# CodeDom for this purpose. This link may help you
http://www.codeproject.com/Articles/3445/Runtime-Compilation-A-NET-eval-statement
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With