NAnt SDK Documentation - v0.92 |

# ProgramLocationAttribute Class

Indicates the location that a task executable can be located in.

For a list of all members of this type, see ProgramLocationAttribute Members.

System.Object
System.Attribute
NAnt.Core.Attributes.ProgramLocationAttribute

[Visual Basic]
<AttributeUsage(Inherited:=False, ValidOn:=AttributeTargets.Class, AllowMultiple:=False)>
Public Class ProgramLocationAttribute
Inherits Attribute
[C#]
[AttributeUsage(Inherited=False, ValidOn=AttributeTargets.Class, AllowMultiple=False)]
public class ProgramLocationAttribute : Attribute

#### Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

#### Remarks

When applied to a task deriving from ExternalProgramBase, the program to execute will first be searched for in the designated location.

If the program does not exist in that location, and the file name is not an absolute path then the list of tool paths of the current target framework will be searched (in the order in which they are defined in the NAnt configuration file).

#### Requirements

Namespace: NAnt.Core.Attributes

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

#### See Also

ProgramLocationAttribute Members | NAnt.Core.Attributes Namespace