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.
EDIT:
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();
I have use this code to create dll it is running but i am not getiing dll on given path