FileHelperAliases.

FindTextInFiles(ICakeContext, IEnumerable<FilePath>, Encoding, string) Method

Summary

Finds files with the given text in files matching the given collection of files.
Assembly
Cake.FileHelpers.dll
Namespace
Cake.FileHelpers
Containing Type
FileHelperAliases

Syntax

public static FilePath[] FindTextInFiles(this ICakeContext context, IEnumerable<FilePath> files, Encoding encoding, string substring)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
files IEnumerable<FilePath> The files to find text in.
encoding Encoding The encoding to use for the file.
substring string The substring to find.

Return Value

Type Description
FilePath[] The files which match the regular expession in the files.