AutoRef Property

NAnt SDK Documentation - v0.92 |

# JscTask.AutoRef Property

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.

[Visual Basic]
<TaskAttribute(Name:="autoref", Required:=False, ExpandProperties:=True, ProcessXml:=True), _ BooleanValidator>
Public Property AutoRef As Boolean
[C#]
[TaskAttribute(Name="autoref", Required=False, ExpandProperties=True, ProcessXml=True)]
[BooleanValidator]
public bool AutoRef {get; set;}

#### Remarks

Corresponds with the `/autoref` flag.

#### See Also

JscTask Class | NAnt.DotNet.Tasks Namespace