FrameworkFunctions.

GetFrameworks(FrameworkTypes) Method

Summary

Gets a comma-separated list of frameworks filtered by the specified NAnt.Core.FrameworkTypes.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
FrameworkFunctions

Syntax

[Function("get-frameworks")]
public string GetFrameworks(FrameworkTypes types)

Examples

Define a build-all target that executes the build target once for each installed framework targeting compact devices.

    <target name="build-all">
    <foreach item="String" in="${framework::get-frameworks('installed compact')}" delim="," property="framework">
        <property name="nant.settings.currentframework" value="${framework}" />
        <call target="build" />
    </foreach>
</target>

<target name="build">
    ...
</target>

Attributes

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

Parameters

Name Type Description
types FrameworkTypes A bitwise combination of NAnt.Core.FrameworkTypes values that filter the frameworks to retrieve.

Return Value

Type Description
string A comma-separated list of frameworks filtered by the specified NAnt.Core.FrameworkTypes, sorted on name.