Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

create dll file in c# [closed]

Tags:

c#

dll

How can I create a dll file in C#?

like image 810
Javad Yousefi Avatar asked Mar 27 '11 23:03

Javad Yousefi


People also ask

What language is DLL written in?

DLL files use languages like C or C++, although you'll see C++ more often. You can write your own DLLs to run some code you need if you're willing to learn how to do it. It could be valuable to your project and of course it could make you look good in return.

What is DLL in C programming?

In Windows, a dynamic-link library (DLL) is a kind of executable file that acts as a shared library of functions and resources. Dynamic linking is an operating system capability. It enables an executable to call functions or use resources stored in a separate file.

When DLL file is created in C#?

A Dynamic Link library (DLL) is a library that contains functions and codes that can be used by more than one program at a time. Once we have created a DLL file, we can use it in many applications. The only thing we need to do is to add the reference/import the DLL File.


2 Answers

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)

like image 146
Ricky Avatar answered Oct 14 '22 11:10

Ricky


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)

like image 37
striped.dynamite Avatar answered Oct 14 '22 12:10

striped.dynamite