NAnt SDK Documentation - v0.92

PkgConfigFunctions.GetModVersion Method 

Determines the version of the given package.

[Visual Basic]
<Function(Name:="get-mod-version")>
Public Function GetModVersion( _
   ByVal package As String _
) As String
[C#]
[Function(Name="get-mod-version")]
public string GetModVersion(
   string package
);

Parameters

package
The package to get the version of.

Return Value

The version of the given package.

Exceptions

Exception Type Condition
Win32Exception pkg-config could not be started.
ArgumentException package does not exist.

See Also

PkgConfigFunctions Class | NAnt.Core.Functions Namespace