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.
This is usefull to create the DLL for single Class
ProcessStartInfo info = new ProcessStartInfo(@"C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe",@" /target:library /out:D:\ss\myfile2.dll D:\ss\Class2.cs");
info.UseShellExecute = true;
Process.Start(info);
Marked as answer by pratik_godha on Dec 29, 2012 01:50 PM
pratik_godha
Member
2 Points
22 Posts
I want to create a dll of .cs file by code means by programming in c#
Dec 29, 2012 11:31 AM|LINK
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.
urenjoy
Star
12139 Points
1818 Posts
Re: I want to create a dll of .cs file by code means by programming in c#
Dec 29, 2012 11:43 AM|LINK
Check following:
http://stackoverflow.com/questions/4718329/compiling-code-dynamically-using-c-sharp
http://support.microsoft.com/kb/304655
pratik_godha
Member
2 Points
22 Posts
Re: I want to create a dll of .cs file by code means by programming in c#
Dec 29, 2012 01:50 PM|LINK
This is usefull to create the DLL for single Class
ProcessStartInfo info = new ProcessStartInfo(@"C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe",@" /target:library /out:D:\ss\myfile2.dll D:\ss\Class2.cs");
info.UseShellExecute = true;
Process.Start(info);