Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

<startup> Element

Contains the <requiredRuntime> element.

<configuration> Element
  <startup> Element
<startup> 
</startup>

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

Element

Description

<requiredRuntime>

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.

<supportedRuntime>

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.

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.

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>
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.