Build, Web Site Property Pages Dialog Box
The Build property page allows you to specify options for how Microsoft Visual Web Developer will compile pages when you run your Web site.
The options in this page apply only when you are testing your Web site in Visual Web Developer; they do not apply to deploying your Web site to a production server. For more information on deployment, see Deployment (How Do I in Visual Web Developer).
To access this dialog box
In Visual Web Developer, in the Solution Explorer pane, click your Web site project name.
Click View and then click Property Pages.
Alternatively, you can right-click your Web site project name in Solution Explorer and click Property Pages.
The Property Pages window appears.
Click the Build node.
Start action (F5)
Before running startup page
Select an option from this list to specify how Microsoft Visual Studio compiles the page when you press F5 or select the Start Debugging or the Start Without Debugging command from the Debug menu. The choices are:
No Build Visual Web Developer does not compile the page or the site before launching the browser and displaying the start page. Instead, when the browser invokes the page, the ASP.NET page framework compiles the page. Any compilation errors are displayed only in the browser. This option is useful to run large Web sites or remote sites because it minimizes the time needed to invoke the web page.
Build Page Visual Web Developer compiles only the current page. Errors are reported in the Error List Window. If an error is found, you can choose to continue viewing and debugging the page in the browser. This option is useful if you want to test only one page, or run large Web sites or remote sites, because it minimizes the time needed to invoke the Web page.
Build Web Site Visual Web Developer compiles the entire Web site, including all components and dependencies. Errors are reported in the Error List Window. If an error is found, you can choose to continue viewing and debugging the page in the browser.
- Target framework
Select an option from this list to specify the version of the .NET Framework that this Web site should run with. For information about how to target specific versions of the .NET Framework, see .NET Framework Multi-Targeting for ASP.NET Web Projects.
Build solution action
Build Web site as part of solution
This option applies if you are working with multiple projects in a solution and one of the projects is a Web site. Select the check box to have Visual Studio perform a complete compilation of the Web site whenever you choose to build the entire solution.
Enable Code Analysis
Visual Web Developer runs Code Analysis (previously called FxCop) when building; this reports information about the assemblies, such as possible design, localization, performance, and security improvements.
The options in this group determine whether Visual Web Developer checks your page or pages to see if they meet accessibility standards and are usable by people with disabilities. You can specify which accessibility standards to apply and which error or warning messages you want to see by using settings on the Accessibility property page.
Include accessibility validation when building page
Visual Web Developer runs accessibility validation for the current page. Results are shown in the Accessibility Output window.
Include accessibility validation when building web
Visual Web Developer runs accessibility validation for all pages in the Web site. Results are shown in the Accessibility Output window.