C# Class Rock.Services.NuGet.WebProjectSystem

Inheritance: NuGet.PhysicalFileSystem, IProjectSystem, IFileSystem
Mostra file Open project: NewSpring/Rock

Public Methods

Method Description
AddFile ( string path, Stream stream ) : void

Workaround to deal with the "because it is being used by another process" dll problem. This method will always add the file to the filesystem.

AddFrameworkReference ( string name ) : void

Adds the framework reference.

AddImport ( string targetFullPath, ProjectImportLocation location ) : void

Adds the import.

AddReference ( string referencePath, Stream stream ) : void

Adds the reference.

FileExists ( string path ) : bool

Workaround until we get to NuGet 2.7 - Always treat the file as though it does not exist so that it will be replaced.

FileExistsInProject ( string path ) : bool

Files the exists in project.

GetPropertyValue ( string propertyName ) : dynamic

Gets the property value.

IsSupportedFile ( string path ) : bool

Determines whether [is supported file] [the specified path].

ReferenceExists ( string name ) : bool

References the exists.

RemoveImport ( string targetFullPath ) : void

Removes the import.

RemoveReference ( string name ) : void

Removes the reference.

ResolvePath ( string path ) : string

Resolves the path.

WebProjectSystem ( string siteRoot ) : System

Initializes a new instance of the WebProjectSystem class.

Protected Methods

Method Description
GetReferencePath ( string name ) : string

Gets the reference path.

Private Methods

Method Description
ProcessFilesToDelete ( string deleteListFile ) : void

Deletes each file listed in the App_Data/deletefile.lst and then deletes that file.

Method Details

AddFile() public method

Workaround to deal with the "because it is being used by another process" dll problem. This method will always add the file to the filesystem.
public AddFile ( string path, Stream stream ) : void
path string
stream Stream
return void

AddFrameworkReference() public method

Adds the framework reference.
public AddFrameworkReference ( string name ) : void
name string The name.
return void

AddImport() public method

Adds the import.
public AddImport ( string targetFullPath, ProjectImportLocation location ) : void
targetFullPath string The target full path.
location ProjectImportLocation The location.
return void

AddReference() public method

Adds the reference.
public AddReference ( string referencePath, Stream stream ) : void
referencePath string The reference path.
stream Stream The stream.
return void

FileExists() public method

Workaround until we get to NuGet 2.7 - Always treat the file as though it does not exist so that it will be replaced.
public FileExists ( string path ) : bool
path string
return bool

FileExistsInProject() public method

Files the exists in project.
public FileExistsInProject ( string path ) : bool
path string The path.
return bool

GetPropertyValue() public method

Gets the property value.
public GetPropertyValue ( string propertyName ) : dynamic
propertyName string Name of the property.
return dynamic

GetReferencePath() protected method

Gets the reference path.
protected GetReferencePath ( string name ) : string
name string The name.
return string

IsSupportedFile() public method

Determines whether [is supported file] [the specified path].
public IsSupportedFile ( string path ) : bool
path string The path.
return bool

ReferenceExists() public method

References the exists.
public ReferenceExists ( string name ) : bool
name string The name.
return bool

RemoveImport() public method

Removes the import.
public RemoveImport ( string targetFullPath ) : void
targetFullPath string The target full path.
return void

RemoveReference() public method

Removes the reference.
public RemoveReference ( string name ) : void
name string The name.
return void

ResolvePath() public method

Resolves the path.
public ResolvePath ( string path ) : string
path string The path.
return string

WebProjectSystem() public method

Initializes a new instance of the WebProjectSystem class.
public WebProjectSystem ( string siteRoot ) : System
siteRoot string The site root.
return System