NAnt SDK Documentation - v0.92

CommandLineOptions.TargetFramework Property

Gets or sets the target framework to use (overrides NAnt.exe.config settings)

[Visual Basic]
<CommandLineArgument(Type:=CommandLineArgumentTypes.AtMostOnce, Name:="targetframework", ShortName:="t", Description:="Specifies the framework to target")>
Public Property TargetFramework As String
[C#]
[CommandLineArgument(Type=CommandLineArgumentTypes.AtMostOnce, Name="targetframework", ShortName="t", Description="Specifies the framework to target")]
public string TargetFramework {get; set;}

Property Value

The framework that should be used.

Remarks

For a list of possible frameworks, see NAnt.exe.config, possible values include "net-1.0", "net-1.1", etc.

See Also

CommandLineOptions Class | NAnt.Core Namespace