C# 클래스 WebApplications.Utilities.PowerShell.NuSpecEditor

파일 보기 프로젝트 열기: webappsuk/CoreLibraries

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