JscTask.

AutoRef Property

Summary

Automatically references assemblies if they have the same name as an imported namespace or as a type annotation when declaring a variable. The default is false.
Assembly
NAnt.DotNet.dll
Namespace
NAnt.DotNet.Tasks
Containing Type
JscTask

Syntax

[TaskAttribute("autoref")]
[BooleanValidator()]
public bool AutoRef { get; set; }

Remarks

Corresponds with the /autoref flag.

Attributes

Type Description
TaskAttributeAttribute Indicates that property should be treated as a XML attribute for the task.
BooleanValidatorAttribute Used to indicate that a property should be able to be converted into a bool.

Value

Type Description
bool