0

enter image description here

Hello everyone, I wish you a healthy day.

I have two different MVC projects, I want my project to run under path localhost:5001/admin/ and the other project to run under localhost:5001/member/ path. I want to start both projects within the same main function.

I don't want the two projects getting mixed up due to a large number of controllers and views.

I ran it under the Areas folder, however, because the project is very large, I noticed that the files were mixed with each other, so I want to run it in two different layers, but in the same solution.

Some hosting companies do not allow for two separate web tiers, so I want to combine two different web tiers in one project.

7
  • AFAIK You can't do this with kestrel web server. The only way I know this could work is if you used IIS Express and set each web project as a virtual directory. Commented Jun 13, 2021 at 6:53
  • @ErikPhilips I'm wondering if I can solve this with code because as if I am creating layer instead of creating area, how can I create it like an area by layering. Commented Jun 13, 2021 at 6:58
  • @ErikPhilips What I mean to you is, how can I use my controllers and views from a different layer? Commented Jun 13, 2021 at 7:00
  • Does this help learn.microsoft.com/en-us/aspnet/core/mvc/advanced/… Commented Jun 13, 2021 at 7:05
  • @AdithSukumar I tried this. Thanks a lot for your valuable comment. But I'm looking for a better way, I don't want to need any code changes when I separate the layers. Commented Jun 13, 2021 at 7:11

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.