I want to create a dll of .cs file by code
<p>I want to create a dll of .cs file by code means by programming in c# can any one help me out how to do it 
means that i have a two class "Class1" and "Class2" and i want to create dll for class1 by programming so how it will be possible for me
please help me out to do it.</p>

<p>EDIT:</p>

<pre><code>ProcessStartInfo info = new ProcessStartInfo(@"C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe");

info.Arguments = @" /out:E:\pratik\file option\Class1.dll Class1.cs";
info.UseShellExecute = true;
Process.Start(info); 
Console.ReadLine(); 
</code></pre>

<p>I have use this code to create dll it is running but i am not getiing dll on given path </p>
