ManagedExecution Enum

Summary

Specifies the execution mode for managed applications.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Types
Base Types
  • Enum
graph BT Type-->Base0["Enum"] Type["ManagedExecution"] class Type type-node

Syntax

[TypeConverter(typeof(ManagedExecutionConverter))]
public enum ManagedExecution

Remarks

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

Corresponding field
Value
"true"
"false"

Even if set to NAnt.Core.Types.ManagedExecution.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.

Attributes

Type Description
TypeConverterAttribute

Fields

Name Constant Value Summary
Auto 1
Leave it up to the CLR to determine which specific version of the CLR will be used to run the application.
static
Default 0
Do not threat the program as a managed application.
static
Strict 2
Forces an application to run against the currently targeted version of a given CLR.
static