C# Класс WebApplications.Utilities.PowerShell.NuSpecEditor

Показать файл Открыть проект

Private Properties

Свойство Тип Описание
GetMetadata string
SetMetadata void

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

Метод Описание
EnsureDependency ( NuSpecDependency dependency ) : void

Ensures the dependency is added if not present.

EnsureDependency ( string dependency ) : void

Ensures the dependency is added if not present.

NuSpecEditor ( [ path ) : System

Initializes a new instance of the NuSpecEditor class.

RemoveDependencies ( Regex idregex ) : void

Removes all dependencies matching the regex.

RemoveDependencies ( string ids ) : void

Removes all dependencies matching the supplied ids.

Save ( ) : void

Saves this instance if their are changes.

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

Метод Описание
GetMetadata ( [ name ) : string
SetMetadata ( [ name, [ value ) : void

Sets the metadata property with the specified name.

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

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

Ensures the dependency is added if not present.
public EnsureDependency ( NuSpecDependency dependency ) : void
dependency NuSpecDependency The dependency.
Результат void

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

Ensures the dependency is added if not present.
public EnsureDependency ( string dependency ) : void
dependency string The dependency.
Результат void

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

Initializes a new instance of the NuSpecEditor class.
public NuSpecEditor ( [ path ) : System
path [ The nuget package specification file.
Результат System

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

Removes all dependencies matching the regex.
public RemoveDependencies ( Regex idregex ) : void
idregex System.Text.RegularExpressions.Regex The regex to match the id against.
Результат void

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

Removes all dependencies matching the supplied ids.
public RemoveDependencies ( string ids ) : void
ids string The ids (multiple ids can be separated with any of ',;|').
Результат void

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

Saves this instance if their are changes.
public Save ( ) : void
Результат void