C# 클래스 NuGet.VersionUtility

파일 보기 프로젝트 열기: NuGetPackageExplorer/NuGetPackageExplorer 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ParseFrameworkFolderName FrameworkName
ParseFrameworkNameFromFilePath FrameworkName
ValidatePortableFrameworkProfilePart bool

공개 메소드들

메소드 설명
GetFrameworkString ( FrameworkName frameworkName ) : string
GetShortFrameworkName ( FrameworkName frameworkName ) : string
ParseFrameworkFolderName ( string path ) : FrameworkName
ParseFrameworkName ( string frameworkName ) : FrameworkName

This function tries to normalize a string that represents framework version names into something a framework name that the package manager understands.

ParseOptionalVersion ( string version ) : System.Version
ParseVersionSpec ( string value ) : IVersionSpec

The version string is either a simple version or an arithmetic range e.g. 1.0 --> 1.0 ≤ x (,1.0] --> x ≤ 1.0 (,1.0) --> x < 1.0 [1.0] --> x == 1.0 (1.0,) --> 1.0 < x (1.0, 2.0) --> 1.0 < x < 2.0 [1.0, 2.0] --> 1.0 ≤ x ≤ 2.0

TryParseVersion ( string versionValue, SemanticVersion &version ) : bool
TryParseVersionSpec ( string value, IVersionSpec &result ) : bool

비공개 메소드들

메소드 설명
ParseFrameworkFolderName ( string path, bool strictParsing, string &effectivePath ) : FrameworkName
ParseFrameworkNameFromFilePath ( string filePath, string &effectivePath ) : FrameworkName
ValidatePortableFrameworkProfilePart ( string profilePart ) : bool

메소드 상세

GetFrameworkString() 공개 정적인 메소드

public static GetFrameworkString ( FrameworkName frameworkName ) : string
frameworkName FrameworkName
리턴 string

GetShortFrameworkName() 공개 정적인 메소드

public static GetShortFrameworkName ( FrameworkName frameworkName ) : string
frameworkName FrameworkName
리턴 string

ParseFrameworkFolderName() 공개 정적인 메소드

public static ParseFrameworkFolderName ( string path ) : FrameworkName
path string
리턴 FrameworkName

ParseFrameworkName() 공개 정적인 메소드

This function tries to normalize a string that represents framework version names into something a framework name that the package manager understands.
public static ParseFrameworkName ( string frameworkName ) : FrameworkName
frameworkName string
리턴 FrameworkName

ParseOptionalVersion() 공개 정적인 메소드

public static ParseOptionalVersion ( string version ) : System.Version
version string
리턴 System.Version

ParseVersionSpec() 공개 정적인 메소드

The version string is either a simple version or an arithmetic range e.g. 1.0 --> 1.0 ≤ x (,1.0] --> x ≤ 1.0 (,1.0) --> x < 1.0 [1.0] --> x == 1.0 (1.0,) --> 1.0 < x (1.0, 2.0) --> 1.0 < x < 2.0 [1.0, 2.0] --> 1.0 ≤ x ≤ 2.0
public static ParseVersionSpec ( string value ) : IVersionSpec
value string
리턴 IVersionSpec

TryParseVersion() 공개 정적인 메소드

public static TryParseVersion ( string versionValue, SemanticVersion &version ) : bool
versionValue string
version SemanticVersion
리턴 bool

TryParseVersionSpec() 공개 정적인 메소드

public static TryParseVersionSpec ( string value, IVersionSpec &result ) : bool
value string
result IVersionSpec
리턴 bool