C# Class Rock.Services.NuGet.RockProjectManager

This class inherits from NuGet.ProjectManager and handles installing new Rock packages (updates) in very specific way -- such as pre processing web.config XDT transforms.
Inheritance: ProjectManager
ファイルを表示 Open project: NewSpring/Rock

Public Properties

Property Type Description
TRANSFORM_FILE_PREFIX string

Public Methods

Method Description
RockProjectManager ( IPackageRepository sourceRepository, IPackagePathResolver pathResolver, IProjectSystem project, IPackageRepository localRepository ) : System

The standard constructor. We'll just call the base constructor.

Protected Methods

Method Description
ExtractPackageFilesToProject ( IPackage package ) : void

This method will be called first when a package is installed. We're using this method to perform some pre processing of XDT files in the

Private Methods

Method Description
MoveTransformedFiles ( string>.Dictionary transformedFiles ) : void

Move the files in the given Dictionary from their full path (key) to the new name relative to the project root.

ProcessXmlDocumentTransformation ( string transformFile, string sourceFile, string destinationFile ) : bool

Perform an XDT transform using the transformFile against the sourceFile and save the results to the destinationFile.

Method Details

ExtractPackageFilesToProject() protected method

This method will be called first when a package is installed. We're using this method to perform some pre processing of XDT files in the
protected ExtractPackageFilesToProject ( IPackage package ) : void
package IPackage
return void

RockProjectManager() public method

The standard constructor. We'll just call the base constructor.
public RockProjectManager ( IPackageRepository sourceRepository, IPackagePathResolver pathResolver, IProjectSystem project, IPackageRepository localRepository ) : System
sourceRepository IPackageRepository
pathResolver IPackagePathResolver
project IProjectSystem
localRepository IPackageRepository
return System

Property Details

TRANSFORM_FILE_PREFIX public_oe static_oe property

The special transform file prefix that Rock recognizes.
public static string TRANSFORM_FILE_PREFIX
return string