How to create a DLL in VB.NET

I am using VB.NET 2008 and I want to create a DLL that will be used in a C # project.

+2


a source to share


3 answers


When you create your class library in Visual Studio, it will generate a DLL for you and place it in the bin directory.

YourProject/bin/Debug/YourProject.dll
YourProject/bin/Release/YourProject.dll

      



It will be placed in a folder representing your build mode (Debug / Release), which you can usually switch to your toolbar.

+2


a source


Just select Class library

as the project type.



0


a source


Go to File > New Project

and select Visual Basic

, Class Library

as the project type.
Enter the name and directory of the solution and click OK

.
Voila!

After you code your library and build it, you can add it to your references in your C # project.

0


a source







All Articles