FindAndReplaceInFile Class

Summary

Defines a ITask that replaces tokens in a file with values from a token collection.
Namespace
NBuildKit.MsBuild.Tasks.Templating
Base Types
graph TD Base0["BaseTask"]-->Type click Base0 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Core/BaseTask" Base1["Task"]-->Base0 Type["FindAndReplaceInFile"] class Type type-node

Syntax

public sealed class FindAndReplaceInFile : BaseTask

Properties

Name Value Summary
ErrorInformation ITaskItem[]
Gets or sets the collection containing the error codes for the task.
Inherited from BaseTask
Input ITaskItem
Gets or sets the path to the file that should have tokens replaced.
Tokens ITaskItem[]
Gets or sets the collection of tokens.

Methods

Name Value Summary
ErrorCodeById(string) string
Returns the error code for the given ID.
Inherited from BaseTask
Execute() bool
GetAbsolutePath(ITaskItem) string
Returns the absolute path for the given path item.
Inherited from BaseTask
GetAbsolutePath(ITaskItem, ITaskItem) string
Returns the absolute path for the given path item.
Inherited from BaseTask
GetAbsolutePath(string) string
Returns the absolute path for the given path item.
Inherited from BaseTask
VerbosityForCurrentMsBuildInstance() string
Gets the verbosity that the current MsBuild instance is running at.
Inherited from BaseTask
static