Developing large websites often involves multiple developers. These developers must be able to develop Web applications without mutual interference. Program And can work with others during the project process. Therefore, you can use a single project in the Visual Studio. NET solution. To make development easier, you can divide a web application into multiple projects by dividing the development project into multiple units. Single Project Method
Microsoft recommends that you use the single project method for small and medium web applications. Visual Studio. NET directly supports this method. The entire web application is developed into a single ASP. NET web application project. Each member of the group downloads a copy of the entire project to the development computer, where the member develops his/her own applications. ApplicableSource codeManage Software to coordinate the work of group members on the files that constitute the project.
The single-project method has the following advantages:
| • |
This method is easy to implement. You create a single web application project in Visual Studio. NET, and then add an application item to it. |
| • |
For small Web applications, a single Visual Studio. NET project is easy to manage. |
| • |
Visual Studio. NET directly supports this method. This method does not require special steps. |
| • |
Since the entire project is generated in a single assembly, you do not need to reference it between multiple assemblies. |
The disadvantages of a single project method are as follows:
| • |
It is difficult for large web applications to be managed as a single unit. |
| • |
Every time you want to generate your workCodeYou must also generate the entire project. For large projects, this will waste time and reduce development efficiency. Multi-Project MethodIf you divide web applications into multiple Visual Studio. NET projects, it is easier to manage large web applications. A large development project can be divided into multiple smaller projects that can be managed and generated separately. Your group can process separate web applications by processing separate projects. You shall still use the source code management software to coordinate the work on the project file. Visual Studio. NET does not directly support this method, because Visual Studio. NET web projects always use their own Assembly to create in their own IIS application root directory. IIS Web applications cannot span multiple IIS application root directories. In addition, in Visual Studio. NET, resources in other root directories cannot be used from one root directory. If these applications cannot share resources, it is difficult to create a single application from multiple projects. To solve these problems, you can use. to allow multiple Visual Studio projects to share the root directory of the same IIS application. The advantages of the multi-project method are as follows:
| • |
It is easier to manage small units of large web applications. |
| • |
Each project can be generated independently from other projects, thus shortening the generation time during the development process. |
| • |
You can divide a large web application into multiple logical units and share these units with public resources, such as controls. |
The disadvantages of the multi-project method are as follows:
| • |
Visual Studio. NET does not directly support this method. You must perform other steps to add a separate Visual Studio. Net project to the same web application. |
| • |
The Assembly for mutual resource access must be set to reference each other. Visual Studio. NET does not allow circular references. |
| • |
This method is not applicable to small web applications. For small Web applications, managing multiple projects is more complex than managing a single project. |
|
reference from: http://support.microsoft.com/default.aspx? SCID = KB; ch; 307467 # appliesto