DefaultFramework Property

NAnt SDK Documentation - v0.92 |

# CommandLineOptions.DefaultFramework Property

NOTE: This property is now obsolete.

Use the -[t]argetframework option instead.

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

[Visual Basic]
<Obsolete(Message:="Use the -[t]argetframework option instead.", IsError:=False), _ CommandLineArgument(Name:="defaultframework", ShortName:="k", Description:="Specifies the framework to target", Type:=CommandLineArgumentTypes.AtMostOnce)>
Public Property DefaultFramework As String
[C#]
[Obsolete(Message="Use the -[t]argetframework option instead.", IsError=False)]
[CommandLineArgument(Name="defaultframework", ShortName="k", Description="Specifies the framework to target", Type=CommandLineArgumentTypes.AtMostOnce)]
public string DefaultFramework {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