visual - how to use dll in c# project




create dll file in c# (2)

How can I create a dll file in C#?


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)


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)





dll