Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh KumarRank #91 · 22.9K reputationPosted Jan 20, 2023, 2:20 AM EST
You can create class library and build the solution it will generate dll in bin folder, Please refer this one,
https://www.c-sharpcorner.com/UploadFile/1e050f/creating-and-using-dll-class-library-in-C-Sharp/
Vishal JoshiRank #377 · 6.7K reputationPosted Jan 20, 2023, 2:34 AM EST
Hello
To make a DLL file you need to Create a Class Library Project and it will generate a DLL file that you can utilize in other projects.
The Class Library DLL contains program code, data, and resources that can be can be used by other programs and are easily implemented into other Visual Studio projects.
Please review the below article for the sample.
https://www.codementor.io/@dewetvanthomas/tutorial-class-library-dll-for-c-129spithmr
Thanks
Deepak TewatiaRank #142 · 16K reputationPosted Jan 20, 2023, 3:21 AM EST
Hi Kripanshu,
The general steps to create a DLL in C# using Visual Studio:
Note: You can also make a DLL file using the command line interface by using csc.exe, which is the C# compiler.
Vishal JoshiRank #377 · 6.7K reputationPosted Jan 20, 2023, 3:54 AM EST
You can find DLL as per below path detail.
Path: DriveName\..\Project_Name\bin\Debug\Project_Name.dll
i.e. D:\Project_Name\bin\Debug\Project_Name.dll
Thanks
Jignesh KumarRank #91 · 22.9K reputationPosted Jan 20, 2023, 3:54 AM EST
You will find dll in bin folder under your solution.
Aravind GovindarajRank #430 · 5.8K reputationPosted Jan 20, 2023, 4:43 AM EST
Create a project using class library, simple compile it, you can see the pdb and dll files in your bin, debug folder.
Deepak TewatiaRank #142 · 16K reputationPosted Jan 20, 2023, 5:17 AM EST
The DLL file will be located in the bin/debug or bin/release folder, depending on the build configuration that you selected.
Sam HobbsRank #107 · 20.5K reputationPosted Jan 20, 2023, 4:50 PM EST
Developes are constantly saying DLL but there are many types of DLLs. In .Net a Class Library is a DLL and you are probaly asking about Class Libraries (as has been indicated). Developers should not say DLL without clarifiying what type of DLL. If it is a .Net Class Library that you need then calling it a Class Library would make it much easier to understand, as has been indicated in previous replies.