Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am confused about '1 Solution, Multiple Web Projects' problem. I am using Visual studio 2013 , asp.net (c#). Under 1 solution i have a class library and 2 Web projects.

It works well but now when i deploy it on live server then how a user will open these different projects.

e.g. Solution 1 > Project1 and Project2

both are web projects then how i will call each .aspx page under each project ? having same address like www.user.com/
Posted

First off all set a project as start-up project and inside that call other projects present at the solution . And then deploy the solution all projects gets called as the requirement of the user . Make sure you have made that project as start-up one which contains your start-up pages required for allpication .
 
Share this answer
 
You have a couple of options that might work depending on your requirements. But it really depends on if the two projects are independent from one another or if they share a parent child relationship.

1. You can add a reference from Project 2 into Project 1 and then use post build events to copy the content to folders inside Project 1.

Example:
xcopy /s /y /d "$(ProjectDir)Comments\*.ascx" "$(SolutionDir)Web\Comments\"

2. Another option would be to deploy both project to the server, but make a virtual folder for Project 2 under Project 1. In this case you would need to copy the Project 2 assembly to the bin folder for Project 1.
 
Share this answer
 
 
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