Compiling into a dll from studio 2005 IDE
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 GoldRank #50 · 30.6K pointsPosted Aug 14, 2007, 7:39 PM EDT
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,
Mark Gutierrez17 pointsPosted Aug 17, 2007, 1:55 AM EDT