Hi how to create my own dll for my c# application.
-
2can you add more context about what you have at the moment? Any library project will build to a dll...Marc Gravell– Marc Gravell2010-09-14 11:57:53 +00:00Commented Sep 14, 2010 at 11:57
-
1Way too vague to be given a meaningful answerMurph– Murph2010-09-14 12:12:41 +00:00Commented Sep 14, 2010 at 12:12
Add a comment
|
4 Answers
Visual Studio -> New Project -> Class Library
And after compile you will have .dll in bin/debug directory
3 Comments
Shamim Hafiz - MSFT
So a .dll is nothing but a pre compiled class?
David
@Gunner: It's a compiled assembly consisting of one or more classes.
cichy
Tu use it, you have to reference it in your application by clicking right mouse button on "References" and selecting your .dll, you can also set "copy to program directory", so you wont have to copy it manualy.
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.