NAnt SDK Documentation - v0.92 |
|
TypeFactory.ScanDir Method
Scans the path for any task assemblies and adds them.
[Visual Basic]
<ReflectionPermission(Flags:=ReflectionPermissionFlag.NoFlags, TypeInformation:=False, MemberAccess:=False, ReflectionEmit:=False, RestrictedMemberAccess:=False, Action:=SecurityAction.Demand, Unrestricted:=False)>
Public Shared Sub ScanDir( _
ByVal
path As
String, _
ByVal
task As
Task, _
ByVal
failOnError As
Boolean _
)
[C#]
[ReflectionPermission(Flags=ReflectionPermissionFlag.NoFlags, TypeInformation=False, MemberAccess=False, ReflectionEmit=False, RestrictedMemberAccess=False, Action=SecurityAction.Demand, Unrestricted=False)]
public static
void ScanDir(
string path,
Task task,
bool failOnError);
Parameters
-
path
- The directory to scan in.
-
task
- The Task which will be used to output messages to the build log.
-
failOnError
-
Boolean indicating whether scanning of the directory should halt on first error.
See Also
TypeFactory Class | NAnt.Core Namespace