Vinoth K
Vinoth K

Reputation: 475

Create my own Dll for my C# App

Hi how to create my own dll for my c# application.

Upvotes: 2

Views: 2703

Answers (4)

Binary Worrier
Binary Worrier

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

Siva Gopal
Siva Gopal

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

Andrey
Andrey

Reputation: 60095

in Visual Studio:

  1. open Solution Explorer
  2. right mouse click on solution
  3. Add | New Project
  4. Pick Class Library

To use it in other projects you must add reference to it.

Upvotes: 5

cichy
cichy

Reputation: 10644

Visual Studio -> New Project -> Class Library
And after compile you will have .dll in bin/debug directory

Upvotes: 3

Related Questions