FrameworkFunctions Class

Summary

Class which provides NAnt functions to retrieve information about the current framework environment.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Base Types
graph BT Type-->Base0["FunctionSetBase"] click Base0 "/api/NAnt.Core/FunctionSetBase" Base0-->Base1["Object"] Type["FrameworkFunctions"] class Type type-node

Syntax

[FunctionSet("framework", "NAnt")]
public class FrameworkFunctions : FunctionSetBase

Attributes

Type Description
FunctionSetAttribute Indicates that class should be treated as a set of functions.

Constructors

Name Summary
FrameworkFunctions(Project, PropertyDictionary) Initializes a new instance of the NAnt.Core.Functions.FrameworkFunctions class.

Properties

Name Value Summary
Project Project
Gets or sets the NAnt.Core.FunctionSetBase.Project that this functionset will reference.
Inherited from FunctionSetBase

Methods

Name Value Summary
Exists(string) bool
Checks whether the specified framework exists, and is valid.
GetAssemblyDirectory(string) string
Gets the assembly directory of the specified framework.
GetClrVersion() Version
Gets the Common Language Runtime version of the current target framework.
GetClrVersion(string) Version
Gets the Common Language Runtime version of the specified framework.
GetDescription() string
Gets the description of the current target framework.
GetDescription(string) string
Gets the description of the specified framework.
GetFamily(string) string
Gets the family of the specified framework.
GetFrameworkDirectory(string) string
Gets the framework directory of the specified framework.
GetFrameworks(FrameworkTypes) string
Gets a comma-separated list of frameworks filtered by the specified NAnt.Core.FrameworkTypes.
GetRuntimeEngine(string) string
Gets the runtime engine of the specified framework.
GetRuntimeFramework() string
Gets the identifier of the runtime framework.
GetSdkDirectory(string) string
Gets the SDK directory of the specified framework.
GetTargetFramework() string
Gets the identifier of the current target framework.
GetToolPath(string) string
Gets the absolute path of the specified tool for the current target framework.
GetVersion() Version
Gets the version of the current target framework.
GetVersion(string) Version
Gets the version of the specified framework.
SdkExists(string) bool
Checks whether the SDK for the specified framework is installed.