How can I create a dll file in C#?
Asked
Active
Viewed 6.0k times
39
-
21Please supply mind-numbingly vast amounts of additional detail. – SLaks Mar 28 '11 at 00:02
-
4create a Class Library project. Add code. Compile it. Voila! – Mitch Wheat Mar 28 '11 at 00:07
-
http://msdn.microsoft.com/en-us/library/3707x96z(v=vs.80).aspx – Robert Harvey Mar 28 '11 at 04:22
-
I am not sure but maybe it is useful also http://stackoverflow.com/questions/604501/generating-dll-assembly-dynamically-at-run-time – NoWar Nov 30 '12 at 17:48
2 Answers
55
File menu -> New Project -> choose your Programing language (Visual C#/VB etc.) -> Windows -> Class Library.
After the project has been created, make use of Build menu -> Build Solution (or Build [Project Name]) to compile the project.
You may find out the dll in the folder: project folder\bin\debug(or release)

Ricky
- 10,044
- 3
- 26
- 31
8
Assuming you are using Visual Studio as your IDE:
- Create a new Class Library Project (File => New Project => Class Library)
- Right click new project, select "Build"
DLL file will be found in a sub-folder of the new project (likely \bin\Debug)

striped.dynamite
- 106
- 3