NAnt SDK Documentation - v0.92 |

# FrameworkFunctions.GetFrameworks Method

Gets a comma-separated list of frameworks filtered by the specified FrameworkTypes.

[Visual Basic]
<Function(Name:="get-frameworks")>
Public Function GetFrameworks( _
ByVal types As FrameworkTypes _
) As String
[C#]
[Function(Name="get-frameworks")]
public string GetFrameworks(
FrameworkTypes types
);

#### Parameters

types
  A bitwise combination of FrameworkTypes values that filter the frameworks to retrieve.

#### Return Value

A comma-separated list of frameworks filtered by the specified FrameworkTypes, sorted on name.

#### Example

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>

#### See Also

FrameworkFunctions Class | NAnt.Core.Functions Namespace