PkgConfigFunctions.

IsBetweenVersion(string, string, string) Method

Summary

Determines whether the given package is between two versions.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
PkgConfigFunctions

Syntax

[Function("is-between-version")]
public bool IsBetweenVersion(string package, string minVersion, string maxVersion)

Attributes

Type Description
FunctionAttribute Indicates that the method should be exposed as a function in NAnt build files.

Parameters

Name Type Description
package string The package to check.
minVersion string The version the package should at least have.
maxVersion string The version the package should maximum have.

Return Value

Type Description
bool true if the given package is between minVersion and maxVersion; otherwise, false.