C# Класс Rock.Services.NuGet.WebProjectSystem

Наследование: NuGet.PhysicalFileSystem, IProjectSystem, IFileSystem
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
GetReferencePath ( string name ) : string

Gets the reference path.

Приватные методы

Метод Описание
ProcessFilesToDelete ( string deleteListFile ) : void

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

Описание методов

AddFile() публичный Метод

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
Результат void

AddFrameworkReference() публичный Метод

Adds the framework reference.
public AddFrameworkReference ( string name ) : void
name string The name.
Результат void

AddImport() публичный Метод

Adds the import.
public AddImport ( string targetFullPath, ProjectImportLocation location ) : void
targetFullPath string The target full path.
location ProjectImportLocation The location.
Результат void

AddReference() публичный Метод

Adds the reference.
public AddReference ( string referencePath, Stream stream ) : void
referencePath string The reference path.
stream Stream The stream.
Результат void

FileExists() публичный Метод

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
Результат bool

FileExistsInProject() публичный Метод

Files the exists in project.
public FileExistsInProject ( string path ) : bool
path string The path.
Результат bool

GetPropertyValue() публичный Метод

Gets the property value.
public GetPropertyValue ( string propertyName ) : dynamic
propertyName string Name of the property.
Результат dynamic

GetReferencePath() защищенный Метод

Gets the reference path.
protected GetReferencePath ( string name ) : string
name string The name.
Результат string

IsSupportedFile() публичный Метод

Determines whether [is supported file] [the specified path].
public IsSupportedFile ( string path ) : bool
path string The path.
Результат bool

ReferenceExists() публичный Метод

References the exists.
public ReferenceExists ( string name ) : bool
name string The name.
Результат bool

RemoveImport() публичный Метод

Removes the import.
public RemoveImport ( string targetFullPath ) : void
targetFullPath string The target full path.
Результат void

RemoveReference() публичный Метод

Removes the reference.
public RemoveReference ( string name ) : void
name string The name.
Результат void

ResolvePath() публичный Метод

Resolves the path.
public ResolvePath ( string path ) : string
path string The path.
Результат string

WebProjectSystem() публичный Метод

Initializes a new instance of the WebProjectSystem class.
public WebProjectSystem ( string siteRoot ) : System
siteRoot string The site root.
Результат System