Web client software factory series (1): initial knowledge and preliminary knowledge what is software factory
The software factory developed by the Microsoft mode and practice team is not a public component and can be directly introduced into the project for use, it aims to solve the problem by providing an entire set of tools, methods, and patterns used to develop applications using specific technologies. It aims to provide guidance on how to best use specific technologies in an enterprise environment, each software factory contains the following parts:
- Application Block and library-the actual part of the software, built based on top-level target technology, aims to provide the infrastructure for pre-built best practices that comply with recommendations.
- Guide package schemes and templates-typical plug-ins of Visual Studio, used to generate initial solution templates and/or extend existing projects using features built using recommended best practices. Most implementations of these plug-ins depend on application blocks and libraries.
- Designer-added designer support for Visual Studio for some applications.
- Reference implementation-complete execution of slightly practical applications using all other assets in the software factory.
- Architecture guidance and patterns-comprehensive documentation on patterns and best practices for software plant use.
- Procedure topic-detailed step-by-step guidance on how to use each part of the software factory (or only guidance on how to use specific technologies in the way recommended by the software factory ).
The software factories provided by the model and practice team include:
Web client software factory
Web service software factory
Smart Client software factory
Mobile client software factory
......
What is Web client software factory?
The Web client software factory provides a set of tools to guide many developers to collaborate with ASP. NET to build large ASP. NET application tasks simultaneously. In the Web Client software factory, the following tools are provided:
- Application blocks and libraries-including composite Web application blocks, page flow application blocks, and objectcontainercececontrol, and use the Enterprise Library for permission management, exception handling, logging, and data access.
- Guidance package solution and template-provides a series of templates, including the solution template, business module template, foundational module template, and page flow template.
- Designer-contains the page flow designer
- Architecture guidance and modes-for example, view-Presenter, application controller, service locator, and dependency Injection
- Reference implementation-provides e-banking reference implementation for a global banking company
- ......
The Web client software factory asset diagram is as follows:
Install Web client software factory
The following prerequisites are required for installing the Web Client software factory:
Install guidance automation extensions
Install guidance automation Toolkit
Install. NET Framework 3.0 and Windows Workflow Foundation
Install Web client software factory, official site: http://www.codeplex.com/websf
Use Web client software factory
When using Web client software factory, you can follow the process provided in the help document:
Create a Web Client Solution
After the Web Client software factory is installed, a new project template called "Web Client solution" is found in Visual Studio 2005, which is listed below the guiding package project type, as shown in:
The solution structure after creation is as follows:
The solution created using the Web Client software factory guide package is divided into two parts: the Shell project under the modeles directory and the developmentwebsite under websites. In fact, the purpose of the Web Client software factory is to create multiple independent modules for collaborative work to define a website. Therefore, these projects are only the first two of the projects you want to add to the application. The general layout of this solution is to create an independent module (Class Library Project) for each part of the site ). Each module is independent and compatible with directories of independent pages and source code files in the main website directory. The goal of this project layout is to allow multiple developers to independently process different parts of the site without interfering with each other, in addition, the module can be deployed independently by transferring the new library and the refreshed page Directory to the Deployment Server, without the need to redeploy all modules at the same time. At the same time, we can see that to integrate multiple modules under a site, it defines a top-level master page default. Master under the/shared subdirectory, and the page created by the module uses this master page by default.
The solution created by the Web Client software factory comes with the default start page. After running the above program, you can see the following interface:
Related Questions
Note that wcsf currently does not support visual stuido 2008. If Visual Studio 2008 beta2 is installed on your machine, an error will be reported when running the web application created by wcsf. You can download the file in the attachment, overwrite the file in the <installation directory> \ Microsoft Web Client factory \ microsoft practices library, or open the wcsf source code to find wcsfbuilderbase under wcsfextensions. in the CS file, the modification method is teardown:
public TItem TearDown<TItem>(IReadWriteLocator locator, TItem item){if (typeof(TItem).IsValueType == false && item == null)return default(TItem);return DoTearDown<TItem>(locator, item);}
Conclusion
The Web client software factory provides compelling solutions for developers trying to manage large websites built using ASP. NET. This software factory allows you to create modules associated with sub-directories in the site, in a pattern (such as view-presenter and application Controller) provides a framework that supports independent website development, testing, and deployment in a modular manner. It is worth studying carefully. Subsequent articles will detail the composite Web application blocks and the view-presenter mode.
Attachment:/files/terrylee/compositeweb.rar
Author: terrylee
Source: http://terrylee.cnblogs.com
Web client software factory series (1): First understanding and preparation-terrylee's tech space-blog