Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Dividing project

Dividing project

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netlearning
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    future3839
    wrote on last edited by
    #1

    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.

    R J 2 Replies Last reply
    0
    • F future3839

      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.

      R Offline
      R Offline
      Raheem MA
      wrote on last edited by
      #2

      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

      F 1 Reply Last reply
      0
      • R 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

        F Offline
        F Offline
        future3839
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • F future3839

          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.

          J Offline
          J Offline
          JHizzle
          wrote on last edited by
          #4

          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.

          F 1 Reply Last reply
          0
          • J JHizzle

            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.

            F Offline
            F Offline
            future3839
            wrote on last edited by
            #5

            thx for your help guys. i solve the problem. it wasn't public

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups