OptionStrict Property

NAnt SDK Documentation - v0.92 |

# VbcTask.OptionStrict Property

Specifies whether the `/optionstrict` option gets passed to the compiler. The default is false.

[Visual Basic]
<TaskAttribute(Name:="optionstrict", Required:=False, ExpandProperties:=True, ProcessXml:=True), _ BooleanValidator>
Public Property OptionStrict As Boolean
[C#]
[TaskAttribute(Name="optionstrict", Required=False, ExpandProperties=True, ProcessXml=True)]
[BooleanValidator]
public bool OptionStrict {get; set;}

#### Property Value

true if the option should be passed to the compiler; otherwise, false.

#### Remarks

See the Microsoft.NET Framework SDK documentation for details.

#### See Also

VbcTask Class | NAnt.DotNet.Tasks Namespace