VersionSpecParseNuGet Method |
Parses a string with a version spec in NuGet format.
See http://docs.nuget.org/docs/reference/versioning
Namespace: semver.toolsAssembly: semver.tools (in semver.tools.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static IVersionSpec ParseNuGet(
string s
)
Public Shared Function ParseNuGet (
s As String
) As IVersionSpec
public:
static IVersionSpec^ ParseNuGet(
String^ s
)
static member ParseNuGet :
s : string -> IVersionSpec
Parameters
- s
- Type: SystemString
String to parse.
Return Value
Type:
IVersionSpec
The version spec.
ExceptionsException | Condition |
---|
ArgumentException |
Throws an exception if the string does not contain a valid version spec in NuGet format.
|
See Also