简体   繁体   中英

Multiple Web Projects in a single ASP.NET Solution

Is it really possible to have a two different asp.net web projects in a single web solution ? For instance here's the current structure

+Solution -CoreModule -CustomModule -WebProject

In this same hierarchy, can I have this

+Solution -CoreModule -CustomModule -WebProject -NewWebProjectModule

And use the web pages defined on NewWebProjecModule inside WebProject and use the style defined in WebProject inside NewWebProjectModule ?

What I am trying to do is separate the modules in the web project to have less clutter ?

Or would I be better of doing a control library as different project OR have the business rules on a separate module and have the UI on the main web project ?

First, you can very much have more than one web project in a Visual Studio Solution. While debugging with VS, you will have to run the required one.

If you have contents/controls that get replicated/reused in both web projects, I would prefer to have them in a common library/module and use them as required.

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