Programmatically call C# Compiler to Compile C# code

.net, c#, compiler-construction

Solution

It sounds like you are looking for the `CSharpCodeProvider`. http://support.microsoft.com/kb/304655, or MSDN have examples.

Problem

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)??

Original source

Related problems