NAnt SDK Documentation - v0.92 |

# ScriptTask Properties

The properties of the ScriptTask class are listed below. For a complete list of ScriptTask class members, see the ScriptTask Members topic.

#### Public Instance Properties

Code | The code to execute.
FailOnError (inherited from Task) | Determines if task failure stops the build, or is just reported. The default is true.
IfDefined (inherited from Task) | If true then the task will be executed; otherwise, skipped. The default is true.
Imports | The namespaces to import.
Language | The language of the script block. Possible values are "VB", "vb", "VISUALBASIC", "C#", "c#", "CSHARP". "JS", "js", "JSCRIPT" "VJS", "vjs", "JSHARP" or a fully-qualified name for a class implementing CodeDomProvider.
LogPrefix (inherited from Task) | Obsolete. The prefix used when sending messages to the log.
MainClass | The name of the main class containing the static `ScriptMain` entry point.
Name (inherited from Task) | The name of the task.
NamespaceManager (inherited from Element) | Gets or sets the XmlNamespaceManager.
Parent (inherited from Element) | Gets or sets the parent of the element.
Prefix | The namespace prefix for any custom functions defined in the script. If ommitted the prefix will default to 'script'
Project (inherited from Element) | Gets or sets the Project to which this element belongs.
Properties (inherited from Element) | Gets the properties local to this Element and the Project.
References | Any required references.
Threshold (inherited from Task) | Gets or sets the log threshold for this Task. By default the threshold of a task is Debug, causing no messages to be filtered in the task itself.
UnlessDefined (inherited from Task) | Opposite of IfDefined. If false then the task will be executed; otherwise, skipped. The default is false.
Verbose (inherited from Task) | Determines whether the task should report detailed build log messages. The default is false.

#### Protected Instance Properties

CustomXmlProcessing (inherited from Element) | Gets a value indicating whether the element is performing additional processing using the XmlNode that was used to initialize the element.
Location (inherited from Element) | Gets or sets the location in the build file where the element is defined.
XmlNode (inherited from Element) | Gets or sets the XML node of the element.

#### See Also

ScriptTask Class | NAnt.DotNet.Tasks Namespace