I have googled this topic and found lots of solution;
I have already used class concept in my project so have idea about that..now i want to create my own DLL and share it with others.
After creating the class everyone suggest me to do the following
Go to the command line and type the following.
CSC /target:library /out:MyFunctions.dll AddClass.cs
MultiClass.cs FactorialClass.cs
Go to the command line option /target:library and ask the C Sharp
Compiler/Linker to output a DLL instead of an EXE. It's possible to have
a different name for the DLL; for example, /out:MyFunctions.dll directs
the compiler to output the DLL with the name MyFunctionsLib; otherwise,
it will take the default name from the first .cs file. Here, it's
AddClass.dll.
I am not getting this above thing..can anyone please help me understand this thing.
Thanks in advance.
Loading

Prince PatelPosted Apr 23, 2022, 8:29 AM
You can make your own dll using c# using this blog :
Blog : https://www.thecodehubs.com/how-to-create-and-use-dlls-class-libraries-in-asp-net
Biswarup SahaPosted Sep 5, 2012, 12:15 PM
I have googled this above topic and found all this answer but didn't understand how to create dll using command prompt. can you please explain these case with a complete example?
Akkiraju IvaturiPosted Sep 5, 2012, 9:06 AM
For example, your class library name is "somecompany.MyLibrary" then by default the generated dll will be somecompany.MyLibrary.DLL. If you want it to be changed to somecompany.Utilities you have to change the assembly name property so that when the DLL is generated it will be with the new name set in the properties.
Now coming to the command prompt option, if you are trying to group a couple of class files into one DLL then you need to specify what is the name you want to give the DLL. If you do not specify any name by default it is going to pickup the name of the first class file you specified at the command prompt. Since you did not create the class files in a class library project using visual studio, you need to manually group them and generate a dll. Had you created the class files in a class library visual studio is going to generate a dll for you.
Let me know if you have any questions.