11

I am working with ASP.NET MVC 4, and trying to have areas in separate projects.

I have been checking this thread where we are anticipated the non-supporting state of areas in different projects after ASP.NET MVC2:

What are the pros and cons of Areas implemented as single projects vs multiple projects in asp.net mvc

Anyone know if it is true that it is not supported anymore?

Could anyone help me to find out if there is a common way to have areas in separated projects when using ASP.NET MVC 4?

I have found this other thread that may help, but was looking for a more common way:

ASP.NET MVC 4 Areas in separate projects not working (view not found)

Thank you!

Community
  • 1
  • 1
user2558401
  • 111
  • 1
  • 1
  • 3

2 Answers2

2

The answer is most likely no, but I can't provide a definitive source as it concerns > version 3.

This was written in 2010:

I'm the development lead on ASP.NET MVC at Microsoft.

There are no plans to include multi-project areas in ASP.NET MVC 3. However, it's definitely an area that we plan to revisit in the future.

In the meantime MvcContrib's solutions are probably the best bet. The MVC Futures download still includes an old (and perhaps only semi-functional) version of the original multi-project areas feature. Because the full source code for it is also available, you might be able to construct a solution that is customized to your needs.

Currently, the areas template as provided in VS2013 does not provide an out of the box solution for this. My assumption would be that it is "possible" but not supported. The greater question would be, what scenario are you encountering where it is necessary to put your areas into different projects?

Community
  • 1
  • 1
NickSuperb
  • 1,134
  • 1
  • 8
  • 27
1

Different projects are like different sites in one solution. They do not depend on each others. Each Area has own routing registration.

You can check this. May be it will help:

ASP.NET MVC 4 Areas in separate projects

Community
  • 1
  • 1
Jeyhun Rahimov
  • 3,621
  • 6
  • 41
  • 85