Summary
Indicates the location that a task executable can be located in.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Attributes - Base Types
-
- Attribute
graph BT
Type-->Base0["Attribute"]
Type["ProgramLocationAttribute"]
class Type type-node
Syntax
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
public class ProgramLocationAttribute : Attribute
Remarks
When applied to a task deriving from NAnt.Core.Tasks.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).
Attributes
Type | Description |
---|---|
Attribute |
Constructors
Name | Summary |
---|---|
Program |
Initializes a new instance of the NAnt.Core.Attributes.ProgramLocationAttribute
with the specified location.
|
Properties
Name | Value | Summary |
---|---|---|
LocationType | LocationType |
Gets or sets the
NAnt.Core.Attributes.ProgramLocationAttribute.LocationType of the task.
|