Detokenise Properties | MSBuild Extension Pack Help 4.0.12.0 |
The Detokenise type exposes the following members.
Properties
Name | Description | |
---|---|---|
CommandLineValues |
Sets the replacement values provided via the command line. The format is token1=value1#~#token2=value2 etc.
|
|
DisplayFiles |
Set to true for files being processed to be output to the console.
|
|
FilesDetokenised |
Gets the files detokenised count. [Output]
|
|
FilesProcessed |
Gets the files processed count. [Output]
|
|
ForceWrite |
If this is set to true, then the file is re-written, even if no tokens are matched.
this may be used in the case when the user wants to ensure all file are written
with the same encoding.
|
|
IgnoreUnknownTokens |
Specifies whether to ignore tokens which are not matched. Default is false.
|
|
ProjectFile |
Sets the MSBuild file to load for token matching. Defaults to BuildEngine.ProjectFileOfTaskNode
|
|
ReplacementValues |
Sets the replacement values.
|
|
ReportUnusedTokens |
Set to true when running a Report to see which tokens are not used in any files scanned. Default is false.
|
|
SearchAllStores |
Specifies whether to search in the ReplacementValues, CommandLineValues and the ProjectFile for token values. Default is false.
|
|
Separator |
Sets the separator to use to split the CommandLineValues. The default is #~#
|
|
TargetFiles |
Sets the TargetFiles.
|
|
TargetPath |
Sets the TargetPath.
|
|
TextEncoding |
The file encoding to write the new file in. The task will attempt to default to the current file encoding. If TargetFiles is specified, individual encodings can be specified by providing an Encoding metadata value.
|
|
TokenExtractionPattern |
Specifies the regular expression to use to extract the token name from the TokenPattern provided. The default pattern is (?<=\$\()[0-9a-zA-Z-._]+(?=\)), i.e it will extract token from $(token)
|
|
TokenPattern |
Specifies the regular expression format of the token to look for. The default pattern is \$\([0-9a-zA-Z-._]+\) which equates to $(token)
|
|
TokenReport |
ItemGroup containing the Tokens (Identity) and Files metadata containing all the files in which the token can be found.
|
|
UnusedTokens |
Itemgroup containing the tokens which have been provided but not found in the files scanned. ReportUnusedTokens must be set to true to use this.
|
See Also