| MSBuild Community Tasks |
| TemplateFile Members |
| See Also Example Constructors Fields Properties Methods |
|
MSBuild task that replaces tokens in a template file and writes out a new file.
The following tables list the members exposed by TemplateFile.
Public Constructors
| Name | Description | |
|---|---|---|
|
TemplateFile | Default constructor. Creates a new TemplateFile task. |
Public Fields
| Name | Description | |
|---|---|---|
|
MetadataValueTag | Meta data tag used for token replacement This field is read-only. |
Public Properties
| Name | Description | |
|---|---|---|
|
BuildEngine | Gets or sets the instance of the |
|
HostObject | Gets or sets the host object associated with the task. (inherited from Task) |
|
Log | Gets an instance of a |
|
OutputFile | The token replaced template file. |
|
OutputFilename | The full path to the output file name. If no filename is specified (the default) the output file will be the Template filename with a .out extension. |
|
Template | The template file used. Tokens with values of ${Name} are replaced by name. |
|
Tokens | List of tokens to replace in the template. Token name is taken from the TaskItem.ItemSpec and the replacement value comes from the ReplacementValue metadata of the item. |
Protected Properties
| Name | Description | |
|---|---|---|
|
HelpKeywordPrefix | Gets or sets the prefix used to compose Help keywords from resource names. (inherited from Task) |
|
TaskResources | Gets or sets the culture-specific resources associated with the task. (inherited from Task) |
Public Methods
| Name | Description | |
|---|---|---|
|
Equals | Determines whether the specified |
|
Execute | Overidden. Executes the task. |
|
GetHashCode | Serves as a hash function for a particular type. |
|
GetType | Gets the |
|
ToString | Returns a |
Protected Methods
| Name | Description | |
|---|---|---|
|
Finalize | Allows an |
|
MemberwiseClone | Creates a shallow copy of the current |
See Also
Documentation version 1.0.0.0.