C# Class NuGet.VersionUtility

Afficher le fichier Open project: NuGetPackageExplorer/NuGetPackageExplorer Class Usage Examples

Private Properties

Свойство Type Description
ParseFrameworkFolderName FrameworkName
ParseFrameworkNameFromFilePath FrameworkName
ValidatePortableFrameworkProfilePart bool

Méthodes publiques

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

Private Methods

Méthode Description
ParseFrameworkFolderName ( string path, bool strictParsing, string &effectivePath ) : FrameworkName
ParseFrameworkNameFromFilePath ( string filePath, string &effectivePath ) : FrameworkName
ValidatePortableFrameworkProfilePart ( string profilePart ) : bool

Method Details

GetFrameworkString() public static méthode

public static GetFrameworkString ( FrameworkName frameworkName ) : string
frameworkName FrameworkName
Résultat string

GetShortFrameworkName() public static méthode

public static GetShortFrameworkName ( FrameworkName frameworkName ) : string
frameworkName FrameworkName
Résultat string

ParseFrameworkFolderName() public static méthode

public static ParseFrameworkFolderName ( string path ) : FrameworkName
path string
Résultat FrameworkName

ParseFrameworkName() public static méthode

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
Résultat FrameworkName

ParseOptionalVersion() public static méthode

public static ParseOptionalVersion ( string version ) : System.Version
version string
Résultat System.Version

ParseVersionSpec() public static méthode

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
Résultat IVersionSpec

TryParseVersion() public static méthode

public static TryParseVersion ( string versionValue, SemanticVersion &version ) : bool
versionValue string
version SemanticVersion
Résultat bool

TryParseVersionSpec() public static méthode

public static TryParseVersionSpec ( string value, IVersionSpec &result ) : bool
value string
result IVersionSpec
Résultat bool