Converting a CS file in to DLL

Here is the code for creating dll from CS file.

First put your cs file in C:\Program Files\Microsoft Visual Studio 8\VC

And choose Dot Net command prompt as follows,

Start ->
All Programs ->
Microsoft Visual Studio 2005 ->
Visual Studio 2005 Command Prompt

Enter the following and press enter key,

csc /t:library /r:System.Web.Services.dll /r:System.Xml.dll myClass.cs

t --> means Target

r --> means Reference.

Note:

Here,

System.Web.Services.dll is webservice's reference.
System.Xml.dll is XML's reference.

1 comment:

Unknown said...

Is it possible to recompile the .dll file to see the .cs file?

Thanks,
Sheeju