Skip to content

Compiling into a dll from studio 2005 IDE

Mark Gutierrez

Asked Aug 14, 2007, 6:03 PM EDT2 answers
Share
LinkedInX
Hi, I'm a bit new with this so I'm in need of help in compiling a dll. I made a project but decided to put most of my code in a separate class inside the same project. But when I run the project it just run and generate the exe file under the debug folder. Can someone help me how can I compile the class into dll and have it compiled at the moment I run the project. Thanks

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Mike Gold
    0

    You need to put the class in a separate project and reference it in the main project.  

    1) Create a New Project inside your current  solution by right clicking on the solution and choosing Add New Project in the popup menu.

    2)  choose the class library template and name it something similar to your class.

    3) Drag your class from the main project into the new project. Be sure to delete it from the main project.

    4)  Add a reference in the main project to your new library project by right clicking on references in the main project and choosing the Project tab.  Add the new project as a reference.

     

    Best,

    0
  • 0
    Thanks for the help, I finally managed to compile a class in the IDE instead of compiling it on the command prompt.
    0