Reputation: 475
Hi how to create my own dll for my c# application.
Upvotes: 2
Views: 2703
Reputation: 51719
When creating a new Project, select "Class Library", this will compile to a dll.
For an existing project, on the project properties, on the application tab, for "Output Type" select "Class Library".
If you have a Windows App, and you want to expose some of it's functionality as a DLL, then you need to factor out the functionality to a seperate class library project.
Upvotes: 1
Reputation: 3502
Create a New Project with the template > ClassLibrary, then add classes into it and build the project. Now your dll will be copied to the \bin\debug folder. Thats it.
Upvotes: 1
Reputation: 60095
in Visual Studio:
To use it in other projects you must add reference to it.
Upvotes: 5
Reputation: 10644
Visual Studio -> New Project -> Class Library
And after compile you will have .dll in bin/debug directory
Upvotes: 3