39

How can I create a dll file in C#?

Mana
  • 1,777
  • 6
  • 37
  • 54
Javad Yousefi
  • 2,190
  • 4
  • 32
  • 50

2 Answers2

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
  • 9,386
  • 3
  • 25
  • 31
8

Assuming you are using Visual Studio as your IDE:

  1. Create a new Class Library Project (File => New Project => Class Library)
  2. Right click new project, select "Build"

DLL file will be found in a sub-folder of the new project (likely \bin\Debug)