NAnt SDK Documentation - v0.92 |

# ManagedExecution Enumeration

Specifies the execution mode for managed applications.

[Visual Basic]
<Serializable, _ TypeConverter(ConverterTypeName:="NAnt.Core.Types.ManagedExecutionConverter, NAnt.Core, Version=0.92.4543.0, Culture=neutral, PublicKeyToken=null")>
Public Enum ManagedExecution
[C#]
[Serializable]
[TypeConverter(ConverterTypeName="NAnt.Core.Types.ManagedExecutionConverter, NAnt.Core, Version=0.92.4543.0, Culture=neutral, PublicKeyToken=null")]
public enum ManagedExecution

#### Remarks

For backward compatibility, the following string values can also be used in build files:

Value | Corresponding field
--- | ---
"true" | Auto
"false" | Default

Even if set to Default, the operating system can still run the program as a managed application.

On Linux this can be done through binfmt_misc, while on Windows installing the .NET Framework redistributable caused managed applications to run on the MS CLR by default.

#### Members

Member Name | Description
--- | ---
Default | Do not threat the program as a managed application.
Auto | Leave it up to the CLR to determine which specific version of the CLR will be used to run the application.
Strict | Forces an application to run against the currently targeted version of a given CLR.

#### Requirements

Namespace: NAnt.Core.Types

Assembly: NAnt.Core (in NAnt.Core.dll)

#### See Also

NAnt.Core.Types Namespace