locked
how to use 3 project in 1 solution ? RRS feed

  • Question

  • User1928394251 posted

    i have 3 project(anbar,gozaresh,afish)  with asp.net mvc . i want to put every three in 1 solution .

     just i want to have  1 main page . it has 3 link to

    1)action link to anbar

    2) action link to gozaresh

    3) action link to afish

    thank ypu for help me .

    Tuesday, June 18, 2019 5:35 AM

Answers

All replies

  • User-1038772411 posted

    Hello, aabedeni056

     Yes you can easily do this.

    1. first of all in one solution create 3 project 
    2. than right click on main solution name
    3. click "Properties". open popups
    4. select radio button "multiple startup project". and select your all project set "Action" To "Start".
    5. thank after run 3 project copy each project url like : http://localhost:1234/controllername/actionname
    6. than go to that page you want to set three button for redirect each project and set each project link to each button

    Here, I m providing you reference link for more understanding. i hope it will work for you fine

    https://stackoverflow.com/questions/25356831/mvc-redirect-from-one-project-to-another-in-one-solution

    Thanks.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, June 18, 2019 6:12 AM
  • User1928394251 posted

    thank  for your answer.

     

    Tuesday, June 18, 2019 6:16 AM
  • User-1038772411 posted

    As per your question before you edited :

    Create the Child Projects
    To create the child projects, follow these steps:

    1. For each child project, right-click -> the solution in the Solution Explorer window -> point to Add -> click New Project.

    2. In the Add New Project dialog box, click ASP.NET Web Application under Templates.

    3. Than Go with your requirement like want to create mvc,webapi project.

    Please Refer the above steps for more 2 projects to add in the same solution.

    Thanks.

    Tuesday, June 18, 2019 6:34 AM
  • User1928394251 posted

    i use it . it work right . but project1 , 2 , 3 are empty (localhost:123\entities\index) .  i want to put past project1 that i wrote in new solution  (controller , model , view ) in it . 

    will it work  work ?

    i want to work main solution  ,  i connect to link to project 1 , project 2 , project 3 .

    when i create 3 project . it creats 3 controller with the same name ( HOME,ACCOUNT , MANAGE)

    Tuesday, June 18, 2019 6:37 AM
  • User1928394251 posted

    thank you very much .i do  first step . it work right .

    Tuesday, June 18, 2019 7:26 AM