SemanticVersionTryParseNuGet Method |
Parses a string using loose semantic versioning rules that allows a Microsoft or NuGet style version with
2-4 version components followed by an optional pre release name.
Namespace: semver.toolsAssembly: semver.tools (in semver.tools.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static bool TryParseNuGet(
string s,
out SemanticVersion result
)
Public Shared Function TryParseNuGet (
s As String,
<OutAttribute> ByRef result As SemanticVersion
) As Boolean
public:
static bool TryParseNuGet(
String^ s,
[OutAttribute] SemanticVersion^% result
)
static member TryParseNuGet :
s : string *
result : SemanticVersion byref -> bool
Parameters
- s
- Type: SystemString
- result
- Type: semver.toolsSemanticVersion
Return Value
Type:
Boolean
See Also