8

Is it possible making a DLL file from an existing project in visual studio C# ? instead of giving an exe , i want to supply a DLL file for another person to use my methods in his code. i want to take the project as a whole and supply a DLL. It is already a big project with many components , but its built not right and it will take a whole lot of time to make this code into modules, so i rather give the whole project as a dll.

thanks for any help.

2 Answers 2

18

Project properties -> Application tab -> Output type -> Select 'Class library' there.

Sign up to request clarification or add additional context in comments.

1 Comment

Might be worth noting the DLL file will then be located in the projects bin folder
1

Do you want to keep the EXE version of the project as well?

If so, create a new project that has a target of assembly in the same solution, then link in the existing .cs / .vb files.

To link:

  • right-click on the project
  • add existing
  • select .cs file
  • click "Add" dropdown arrow
  • select link
  • hit "Add Link" button.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.