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.

Note

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

  1. In Visual Web Developer, in the Solution Explorer pane, click your Web site project name.

  2. 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.

  3. Click the Build node.

Tasks

UI Elements

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.

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.

Accessibility validation

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. The specific type of accessibility validation checking that Visual Web Developer performs is determined by settings you make in the Accessibility, Web Site Property Pages Dialog Box.

  • 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.

See Also

Concepts

Testing Web Pages in Visual Web Developer