39

How can I create a dll file in C#?

Mana
  • 1,925
  • 6
  • 39
  • 55
Javad Yousefi
  • 2,250
  • 4
  • 35
  • 52

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
  • 10,044
  • 3
  • 26
  • 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)