Dividing project
-
Hello every1, I am reading a book in order to build up my ASP.NET skills. I create a big project and then split it up into 3 category.
they way of split it. Add each of the three projects by right-clicking the solution name (i.e., Solution ‘SportsStore’) in Solution Explorer, and then choosing Add New Project.
i have done some code in 1st project and in second project I need to add one of class's og 1st project. I try to use using .... but I can't find the first project. -
Hello every1, I am reading a book in order to build up my ASP.NET skills. I create a big project and then split it up into 3 category.
they way of split it. Add each of the three projects by right-clicking the solution name (i.e., Solution ‘SportsStore’) in Solution Explorer, and then choosing Add New Project.
i have done some code in 1st project and in second project I need to add one of class's og 1st project. I try to use using .... but I can't find the first project.Hello, You can add the dll of first project to the second project as a reference and then you can use using statement to use the methods of first project in second project. Following is the procedure: 1. Select and Expand second project (say Project2) 2. Right click on References and choose "Add Reference" 3. Browse for the first project dll which would be in 'Bin\Debug\' folder of the first Project (Project1) 4. Select the dll and Click "OK". 5. Now you can use using statement in the second project to use the methods of Project1. Let me know if I did not answer your question correctly. Thank you, Raheem MA
-
Hello, You can add the dll of first project to the second project as a reference and then you can use using statement to use the methods of first project in second project. Following is the procedure: 1. Select and Expand second project (say Project2) 2. Right click on References and choose "Add Reference" 3. Browse for the first project dll which would be in 'Bin\Debug\' folder of the first Project (Project1) 4. Select the dll and Click "OK". 5. Now you can use using statement in the second project to use the methods of Project1. Let me know if I did not answer your question correctly. Thank you, Raheem MA
firstly,m thanks for your reply. your solution works very well but there is a problem. In one of my project(SportsStore.Domain) I have created 3 folder, including different classes. after adding the dll in second project I type using statement. I just saw 2 folders and couldn't see all folders. using SportsStore.Domain.Folder1 using SportsStore.Domain.Folder2 I can't see other folders and if I type it I will face with compiler error.
-
Hello every1, I am reading a book in order to build up my ASP.NET skills. I create a big project and then split it up into 3 category.
they way of split it. Add each of the three projects by right-clicking the solution name (i.e., Solution ‘SportsStore’) in Solution Explorer, and then choosing Add New Project.
i have done some code in 1st project and in second project I need to add one of class's og 1st project. I try to use using .... but I can't find the first project. -
Referencing the DLL is not the best way forward, you're going to want a project level reference which is the far right tab on the add new reference dialog.
thx for your help guys. i solve the problem. it wasn't public