Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
pls help me.....
i have created class library project & i wanted to import into windows project so how i can import and use this class library project.
Posted
Comments
HardikPatel.SE 22-May-14 4:55am    
Add reference of your class library project to your windows project....

Go to the solution explorer window of the project where you want to add the library project,right click on it and choose add reference ,then in the opened window choose browse and select the physical path of your library project check it and add it . Now you can use it .
 
Share this answer
 
If you are using Visual Studio, click "Project->Add Reference.." and select the tab "Browse". Now in the file browser, select the output file of your Class Library(.dll). Now you should be able to explore the class of your library in "Class View".

Note: If you add the class library to the same solution which contains the WinForms project, instead of going to the browse tab, go to the "Project" tab and select the class library project name.
 
Share this answer
 
1) create main folder

2) put both of your codes in same folder (class library project and window application)

3) now open window application and create solution file from new menu and save in Main folder.

4) right click your solution file and click Add --> Existing Project --> go to your folder of class library and select project file.

5)once project is added to the solution, you need to add reference to your window application.

6)now right click your window application and click Add Reference

7)select solution and check your class library project. and press OK.

8) Rebuild your solution.

9) you can use now class and objects of class library with the use of Using statement at top of the c# page
 
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