<startup> Element
Contains the <requiredRuntime> element.
<configuration> Element
<startup> Element
<startup>
</startup>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
None.
Child Elements
Element |
Description |
---|---|
Specifies that the application supports only version 1.0 of the common language runtime. Applications built with runtime version 1.1 should use the <supportedRuntime> element. |
|
Specifies which versions of the common language runtime the application supports. |
Parent Elements
Element |
Description |
---|---|
configuration |
The root element in every configuration file used by the common language runtime and .NET Framework applications. |
Remarks
The <supportedRuntime> element should be used by all applications built using version 1.1 or later of the runtime. Applications built to support only version 1.0 of the runtime must use the <requiredRuntime> element.
The startup code for an application hosted in Microsoft Internet Explorer ignores the <startup> element and its child elements.
Example
The following example shows how to specify the runtime version in a configuration file.
<!-- When used with version 1.0 of the .NET Framework runtime -->
<configuration>
<startup>
<requiredRuntime version="v1.0.3705" safemode="true"/>
</startup>
</configuration>
<!-- When used with version 1.1 (or later) of the runtime -->
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="v1.0.3705"/>
</startup>
</configuration>
See Also
Concepts
Specifying Which Runtime Version to Use