Multiple ASP.NET MVC projects that builds as single ASP.NET MVC Application
NickName:Gopinath Ask DateTime:2009-07-29T21:51:36

Multiple ASP.NET MVC projects that builds as single ASP.NET MVC Application

We want to split our large asp.net mvc web application into multiple Visual Studio projects so that each team can independently on their visual studio project.

Desired structure is:

  1. ASP.NET MVC application that is responsible for the base UI
  2. Module 1 - VS Project (Does this need to be a ASP.net MVC App or .dll?)
  3. Module 2 - VS Project (Does this need to be a ASP.net MVC App or .dll?)
  4. so on....

Each module should contain it's own controller & views that are responsible for functioning of the module. T

How to split the ASP.NET Application in to multiple projects and then merge them as a single website during build process?

Copyright Notice:Content Author:「Gopinath」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/1200424/multiple-asp-net-mvc-projects-that-builds-as-single-asp-net-mvc-application

Answers
Darin Dimitrov 2009-09-01T14:04:32

ASP.NET MVC V2 has a feature called Areas which allows you to have separate projects referenced by the main application. Check out ScottGu's post.",


Gopinath 2009-09-01T13:53:19

The problem is sorted out by just creating multiple MVC projects and merging the output at the end by simple copy & paste :)\n\nhere is the structure we followed:\n\n\nMyApp.Web.Shell (just contains themes, css, js & images required for the web app)\nMyApp.Web.Home\nMyApp.Web.UserManagement\nMyApp.Web.DeviceManagement\nMyApp.Web.ContentManagement\n.....etc...\n\n\nAt the end we are using build scripts to merge output of all the projects and generate the files required for the total web app to run. \n\nIf you need any help in implementing similar solution, get in touch with me at link text",


JaredPar 2009-07-29T15:18:47

One tool you may be interested in looking at is called ILMerge\n\nhttp://research.microsoft.com/en-us/people/mbarnett/ilmerge.aspx\n\nThis is a tool that will allow you to merge several .Net assemblies into a single DLL. It could be used to combine the output of your several projects into a single DLL for deployment.\nI haven't ever tried it with Asp.Net MVC and I'm not familiar enough with the MVC architecture to say whether or not it will work for your situation. But it's likely worth a try.",


Sachin Chavan 2009-09-19T05:24:16

Follow this link it will solve you problem.\n\nTakes just 10 mins to complete the walk-through.\n\nWalkthrough: Organizing an ASP.NET MVC Application by Logical Areas",


Kevin Jones 2009-09-01T14:01:11

One way we handled this in my previous job was to build a master 'controller' application. This app was deployed and was public facing. It's job was to read the incoming URL and, based on a bunch of mapping rules in config files, map that URL to other MVC applications running on the same server. This gave us lots of options such as being able to run the backing apps on different servers in the farm if we wanted to do crude load balancing. You need to manage things such as authentication across the multiple apps (if you're using authentication).\n\nThis basically gives you the ability to have as many different MVC apps as you need running on the servers all with the same front controller (essentially)",


MunkiPhD 2009-09-01T14:04:39

You could just use good Source Control and have the respective teams check out what they need to work on. \n\nThis way you have only one dll at compile time...",


More about “Multiple ASP.NET MVC projects that builds as single ASP.NET MVC Application” related questions

Multiple ASP.NET MVC projects that builds as single ASP.NET MVC Application

We want to split our large asp.net mvc web application into multiple Visual Studio projects so that each team can independently on their visual studio project. Desired structure is: ASP.NET MVC

Show Detail

Deploy multiple asp.net mvc 4 projects of an solution in as an single application

I'm new to asp.Net MVC 4, therefore maybe a simple question for the most of you. I want to deploy multiple projects of an solution as a single application and access to the different projects over...

Show Detail

Is it possible to run multiple ASP.NET Core projects in single applications?

Consider I'm having two ASP.NET Core MVC Web projects. Project A - will have accounts and user information. (Not a class library) Project B - will get account information from project A Project A...

Show Detail

Multiple mvc Asp.Net MVC controller in single page application in mvc using angularjs

I have selected Single page application(MVC,Web api) in visual studio. Then create two Asp.net MVC controllers with the name of HomeController and AdminController. In Asp.net MVC HomeController, i...

Show Detail

ASP.NET MVC multiple intranet projects

I have been working on ASP.NET MVC for a while and loving it so far. But I am hitting a wall now. I am working on a new intranet site, where I will have to host many projects, ranging from couple of

Show Detail

Areas in different project with ASP.NET MVC 4

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 a...

Show Detail

Multiple projects using ASP.NET MVC areas

How can I setup multiple projects using areas in asp.net mvc 2?

Show Detail

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

I have tried to create simple proof-of-concept ASP.NET MVC 4 web site using areas in separate projects. I tried to following tutorials: http://bob.archer.net/content/aspnet-mvc3-areas-separate-pro...

Show Detail

Mixing VB ASP.NET and C# ASP.MVC projects in a single solution

Background We are a TDD team who have inherited a legacy ASP.NET application and are trying to bring it under control by separating presentation, business and data access concerns and thereby impr...

Show Detail

what is the difference between these two projects, ASP.NET MVC2 web application and ASP.NET MVC2 Empty Web application?

what is the difference between these two projects, ASP.NET MVC2 web application and ASP.NET MVC2 Empty Web application?

Show Detail