This documentation is archived and is not being maintained.

Build, Common Properties, <Projectname> Property Pages Dialog Box

Visual Studio .NET 2003

Sets the project defaults for compilation, including the icon to appear representing the application and which compiler options you want turned on by default.

For information on how to access the Build property page in the Common Properties folder, see Setting Visual Basic Project Properties.

Application icon
Sets the .ico file that you want to use as your application icon. Click the ellipsis button to browse for an existing graphic, or type the name of the file you want. See /win32icon for more information. To access this property programmatically, see ApplicationIcon Property.
Option Explicit
Sets the compiler default so that explicit declarations of variables are required. See /optionexplicit for more information. To access this property programmatically, see OptionExplicit Property.
Option Strict
Sets the compiler default so that explicit narrowing conversions are required, and so that late binding is not allowed. See /optionstrict for more information. To access this property programmatically, see OptionStrict Property.
Option Compare
Sets the complier default for string comparisons: binary (case-sensitive) or text (case-insensitive.) By default, Option Compare is set to binary. See /optioncompare for more information. To access this property programmatically, see OptionCompare Property.
Supported Runtimes
Specifies the version(s) of the common language runtime required by the application. By default, version 1.1 of the common language runtime is used; select version 1.0 if you want your application to run on the version of the common language runtime that was included in Visual Studio .NET 2002. This property is only available for Windows Application, Windows Service, Console Application, and ASP.NET Web Application projects.

Windows Application, Windows Service, or Console Application Projects

Selecting a runtime causes the project system to update the app.config file in your project, or create an app.config file if one does not already exist. At runtime, the name of the app.config file must be filename.ext.config, and the file must be in the same directory as the executable. The project system will create the filename.ext.config file from the app.config file and place it in the bin\target directory.

If you specify support for than one runtime version, when the application runs on a computer with more than one runtime version installed, the first available version listed in the .config file will be loaded.

ASP.NET Web Application Projects

Modifying this property causes the project system to update the web.config file in your project by adding assembly binding (<bindingRedirect> and <assemblyIdentity>) tags in a <dependentAssembly> section. Web pages in Visual Studio-built ASP.NET Web applications are precompiled to a .dll file with a dependency on the runtime associated with the compiler.

The web.config file remains in the project directory and is not renamed.

For more information, see ASP.NET Side-by-Side Overview

See Also

<Projectname> Property Pages Dialog Box | Working With Multiple Versions of the .NET Framework

Show: