C# Class WebApplications.Utilities.PowerShell.NuSpecEditor

Afficher le fichier Open project: webappsuk/CoreLibraries

Private Properties

Свойство Type Description
GetMetadata string
SetMetadata void

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
GetMetadata ( [ name ) : string
SetMetadata ( [ name, [ value ) : void

Sets the metadata property with the specified name.

Method Details

EnsureDependency() public méthode

Ensures the dependency is added if not present.
public EnsureDependency ( NuSpecDependency dependency ) : void
dependency NuSpecDependency The dependency.
Résultat void

EnsureDependency() public méthode

Ensures the dependency is added if not present.
public EnsureDependency ( string dependency ) : void
dependency string The dependency.
Résultat void

NuSpecEditor() public méthode

Initializes a new instance of the NuSpecEditor class.
public NuSpecEditor ( [ path ) : System
path [ The nuget package specification file.
Résultat System

RemoveDependencies() public méthode

Removes all dependencies matching the regex.
public RemoveDependencies ( Regex idregex ) : void
idregex System.Text.RegularExpressions.Regex The regex to match the id against.
Résultat void

RemoveDependencies() public méthode

Removes all dependencies matching the supplied ids.
public RemoveDependencies ( string ids ) : void
ids string The ids (multiple ids can be separated with any of ',;|').
Résultat void

Save() public méthode

Saves this instance if their are changes.
public Save ( ) : void
Résultat void