Merging Web Application Projects in Visual Studio -


i have 42 different web application projects in solution, , i'd merge them single web application. there relatively painless way this?

visual studio has 2 types of web projects: web applications , web sites.

web application projects (waps) other project in vs: there's .csproj or .vbproj file contains builds settings, files included in project, msbuild stuff. if have bunch of these in same language (vb/c#), it's matter of adding of files 1 single project. if have separate languages, there's no way combine them, , you'll have either keep separate projects or port 1 language other; msbuild calls 1 compiler per project. (you can later merge assemblies ilmerge, you'll still have combine markup files projects yourself.)

web site projects (wsps) little bit different. far including file project, @ what's on file system (whereas msbuild based projects have whitelist of included files). also, because wsps not compiled msbuild, possible mix separate languages in single project, you'll have configure (see http://msdn.microsoft.com/en-us/library/ms366714.aspx walkthrough on how works).

assuming dealing waps of common language , you're trying reduce number of projects maintain, can't think of better strategy start adding existing files consolidated project. may encounter of these issues:

  1. each separate projects behaves own iis application. important either relies /bin folder (i.e. code), or uses ~/ uri refer content within project. prevent creating folder within masterproject each of sub apps being moved. there isn't design in vs work around this, except have separate projects (obviously not meeting needs...). so, you'll have add files same root folder.

  2. any duplicate file names have sorted out. or, web.config, may have merge file content.

  3. ditto conflicting class names. although i'm hoping if have overlap, it's refactored separate library anyways.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -