NAnt SDK Documentation - v0.92

Project.TargetFramework Property

Gets or sets the framework to use for compilation.

[Visual Basic]
Public Property TargetFramework As FrameworkInfo
[C#]
public FrameworkInfo TargetFramework {get; set;}

Property Value

The framework to use for compilation.

Remarks

We will use compiler tools and system assemblies for this framework in framework-related tasks.

Exceptions

Exception Type Condition
ArgumentNullException The value specified is a null reference (Nothing in Visual Basic).
BuildException The specified framework is not installed, or not configured correctly.

See Also

Project Class | NAnt.Core Namespace