File Properties | MSBuild Extension Pack Help 4.0.12.0 |
The File type exposes the following members.
Properties
Name | Description | |
---|---|---|
AccessType |
Set the AccessType. Can be Allow or Deny. Default is Allow.
|
|
AvoidRegex |
Set to true to avoid using Regular Expressions. This may increase performance for certain operations against large files.
|
|
Checksum |
Gets the file checksum
|
|
CodeLinecount |
Gets the number of code lines countered. This is calculated as Total - Comment - Empty
|
|
CommentIdentifiers |
Sets characters to be interpreted as comment identifiers. Semi-colon delimited. Only single line comments are currently supported.
|
|
CommentLinecount |
Gets the number of comment lines counted
|
|
ElapsedTime |
Gets the time taken to count the files. Value in seconds.
|
|
EmptyLinecount |
Gets the number of empty lines countered. Whitespace is ignored.
|
|
ExcludedFilecount |
Gets the number of excluded files
|
|
ExcludedFiles |
Item collection of files Excluded from the count.
|
|
Files |
An ItemList of files to process. If calling SetAttributes, RemoveAttributes or AddAttributes, include the attributes in an Attributes metadata tag, separated by a semicolon.
|
|
IncludedFilecount |
Gets the number of included files
|
|
IncludedFiles |
Item collection of files included after filtering operations
|
|
Lines |
Sets the Lines to use. For WriteLines this is interpreted as plain text. For RemoveLines this is interpreted as a regular expression
|
|
MatchWholeLine |
Used with AvoidRegex. Set to true to match the whole line. The default is false i.e. a line.Contains operation is used.
|
|
MaxSize |
Sets the maximum size of files to count
|
|
MinSize |
Sets the minimum size of files to count
|
|
Path |
A path to process or get. Use * for recursive folder processing. For the GetChecksum TaskAction, this indicates the path to the file to create a checksum for.
|
|
Permission |
A comma-separated list of FileSystemRights.
|
|
RegexOptionList |
Sets the Regular Expression options, e.g. None|IgnoreCase|Multiline|ExplicitCapture|Compiled|Singleline|IgnorePatternWhitespace|RightToLeft|RightToLeft|ECMAScript|CultureInvariant Default is RegexOptions.Compiled
|
|
RegexPattern |
Sets the regex pattern.
|
|
Replacement |
The replacement text to use. Default is string.Empty
|
|
Result |
Gets the result
|
|
Size |
Sets the size of the file in bytes for TaskAction="Create". This can be overridden by using a metadata tag called size on the Files items.
|
|
TargetPath |
Sets the TargetPath for a renamed file or to save concatenated files
|
|
TextEncoding |
The file encoding to write the new file in. The task will attempt to default to the current file encoding.
|
|
TotalFilecount |
Gets the number of files counted
|
|
TotalLinecount |
Gets the total number of lines counted
|
|
Users |
Sets the users collection. Use the Permission metadata tag to specify permissions. Separate pemissions with a comma.
Remarks <UsersCol Include="AUser"> <Permission>Read,etc</Permission> </UsersCol> |
See Also