Multiple mvc projects in the same solution c #

0

I wanted to see what they recommend. I have a large project with many clients and different requirements for certain things. My idea is to have a generic MVC project with the controllers, views and scripts that are repeated in all the clients and an extra MVC project for each client with the specific controllers, views and scripts of each client. In addition to this I have a Web Api project, in which all the Web Services are located. The areas do not work for me since at the time of publishing the site to each client I do not want you to have things from other clients. And I also need to have the projects separated by organization. The problem is that the execution does not go through the startups of the different MVC projects, it only passes through one and through the WebApi startup.

In short, you can run two MVC applications at the same time and interact with each other, so I can consume a controller of the MVC B application from the MVC A application, as it is done to configure the url? ? What can be done to solve this problem, they recommend me. Thank you very much.

In the image you can see the structure of the solution, the idea is to run GenericWebProject + WebApi + One of the other MVC Projects.

    
asked by alejandro 04.11.2016 в 12:40
source

2 answers

1

If what you want to do is have several projects running in parallel at the same time you have to right click on the project and in the contextual menu search for 'Debug' and then 'Start new instance'.

    
answered by 30.03.2017 в 16:41
0

One option would be to have different solutions that load the specific projects, in which the projects are repeated, obviously you always aim at the same projects, I do not know if it fits with your requirement.

    
answered by 11.11.2016 в 14:16