Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

References between ASP.NET web applications

I have a Visual Studio solution containing two web applications.

I would like the first to depend on the second (pages in the first may contain links to, or possibly post to pages in the second).

Furthermore, I would like to be able to launch the first project on a development server (standard debugging procedure for web apps in VS) and have the references to the second project be fully functional.

Does anyone know the best way to achieve this?

Thanks.

like image 259
mcoolbeth Avatar asked Dec 01 '25 04:12

mcoolbeth


1 Answers

You can establish the dependency relationship by right clicking on your top-level web application project and selecting Project Dependencies. Check the dependency web application project in the list. To start both projects for debugging, follow these steps:

  1. Right click on the solution and select Properties.
  2. Select Common Properties > Startup Project from the list on the left.
  3. Select the Multiple startup projects option
  4. Set the Action column appropriately for your projects and click OK

When you start the debugger, your projects should startup as desired.

like image 120
Jim Lamb Avatar answered Dec 02 '25 18:12

Jim Lamb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!