Hello ,
To build the file MyFunctions.DLL, compile the two files Add.cs and Mult.cs using the following command line:
csc /target:library /out:MyFunctions.DLL Add.cs Mult.cs
The /target:library compiler option tells the compiler to output a DLL instead of an EXE file. The /out compiler option followed by a file name is used to specify the DLL file name. Otherwise, the compiler uses the first file (Add.cs) as the name of the DLL.
To build the executable file, TestCode.exe, use the following command line:
csc /out:TestCode.exe /reference:MyFunctions.DLL TestCode.cs
The /out compiler option tells the compiler to output an EXE file and specifies the name of the output file (TestCode.exe). This compiler option is optional. The /reference compiler option specifies the DLL file or files that this program uses.
Please refer URL (
http://msdn.microsoft.com/en-us/library/3707x96z(v=vs.80).aspx[
^]) for more details