C# Class NuGet.Preprocessor

Simple token replacement system for content files.
Inheritance: IPackageFileTransformer
Exibir arquivo Open project: monoman/NugetCracker Class Usage Examples

Public Methods

Method Description
RevertFile ( IPackageFile file, string targetPath, IEnumerable matchingFiles, IProjectSystem projectSystem ) : void
TransformFile ( IPackageFile file, string targetPath, IProjectSystem projectSystem ) : void

Private Methods

Method Description
Process ( IPackageFile file, IPropertyProvider propertyProvider ) : string
Process ( Stream stream, IPropertyProvider propertyProvider, bool throwIfNotFound = true ) : string
ReplaceToken ( Match match, IPropertyProvider propertyProvider, bool throwIfNotFound ) : string

Method Details

RevertFile() public method

public RevertFile ( IPackageFile file, string targetPath, IEnumerable matchingFiles, IProjectSystem projectSystem ) : void
file IPackageFile
targetPath string
matchingFiles IEnumerable
projectSystem IProjectSystem
return void

TransformFile() public method

public TransformFile ( IPackageFile file, string targetPath, IProjectSystem projectSystem ) : void
file IPackageFile
targetPath string
projectSystem IProjectSystem
return void