简体   繁体   中英

Split Web Application project into multiple projects

I currently know of a solution for creating "child" web application projects in VS that is detailed here . However that solution was detailed for VS2005. It still works in VS2010, however it looks like there are still a few issues with it as it is effectively a VS hack.

I was wondering if there has been anything new/better in VS2008 or VS2010 to better support splitting up a web project - I can't find anything on it.

Thanks.

I did this for my organisation and wrote this blog after completion: http://abhighag.blogspot.com/2012/03/separate-web-application-into-multiple.html

Thought it might be useful for some one else :)

As an update on this, I decided not to use child web projects. I still feel like they're a hack and wasn't prepared to deal with any future unknowns.

It seems like there is no other way of achieving what I want, so I decided to go with one big Web Application project.

What are the issues? This isn't a hack - you are just changing the default project template to suit your needs and that you are going to rely on asp.net's web.config inheritence for projects under the same folder structure.

These are still conceptually separate applications but you are sharing either a web.config on inheriting settings from the parent. By using IIS and not the built in web server you are truly getting the full working inheritence. Plus - cassini (built in web server) is slow and act different than IIS anyways - even more reason to just use IIS or IIS Express.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM