Click here to Skip to main content
16,019,018 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How Can I convert to completed C# project to dll . For example I made a good C# project and I want to use it in other projects.

I have googled but lots of them are telling open class library and write your codes in Class library.Then Build Solution and everything is ok.

But my question is how can I convert completed project to dll.(For example;maybe project can include lots of Forms etc.)
Posted
Updated 17-Jul-12 21:12pm
v2

How easy this is to do will depend on how you wrote your project in the first place.

The first thing to try is:
1) Open your solution in VS
2) In the Solution Explorer pane, right click the Project and select "Properties"
3) In the Properties page that shows, select the "Application" tab.
4) On the right side of the page is a drop down list: "Output Type". Change that to "Class Library"
5) Rebuild

You will how have a class library you can import into other projects.
 
Share this answer
 
Comments
y.baris 18-Jul-12 3:33am    
Ok thanks OriginalGriff it works and I created dll now.
But second question is I imported that dll into other project and I wanted to run this dll in Form Load.İs this posssible ?
OriginalGriff 18-Jul-12 3:41am    
I'm not sure exactly what you mean there.
You can access any of the public items in the DLL - forms, user controls, classes.
y.baris 18-Jul-12 3:49am    
Ok understood you.When I debug my Project I want to see dll like an exe run. Am I clear ?
y.baris 18-Jul-12 4:04am    
Ok I solved thanks for your help :)
But Can I ask other question ?
OriginalGriff 18-Jul-12 4:05am    
You can ask! I might not be able to answer, but we won't know that until we see the question...:laugh:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900