ASP.NET MVC - separating large app

Posted by marc_s on Stack Overflow See other posts from Stack Overflow or by marc_s
Published on 2010-04-06T13:43:45Z Indexed on 2010/04/06 14:23 UTC
Read the original article Hit count: 285

I've been puzzled by what I consider a contradiction in terms: ASP.NET MVC claims to be furthering and supporting the "separation of concern" motto, which I find a great idea.

However, it seems there's no way of separating out controllers, model or views into their own assembly, or separating areas into assemblies.

With the fixed Controller, Model and View folders in your ASP.NET MVC, you're actually creating a huge hodge podge of things. Is that the separation of concerns, really?? Seems like quite the contrary to me.

So what I'm wondering:

  • how can I create an ASP.NET MVC solution that will either separate out controllers, the model, and the folders full of views, into separate assemblies?

  • how can I put areas of ASP.NET MVC 2 into separate assemblies?

  • or how else do you manage a large ASP.NET MVC app - which has several dozen or even over a hundred controllers, lots of model and viewmodel classes, and several hundred views?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about separation-of-concerns