LangVersion Property

NAnt SDK Documentation - v0.92 |

# CscTask.LangVersion Property

Causes the compiler to only accept syntax that is included in a given specification.

[Visual Basic]
<TaskAttribute(Name:="langversion", Required:=False, ExpandProperties:=True, ProcessXml:=True)>
Public Property LangVersion As String
[C#]
[TaskAttribute(Name="langversion", Required=False, ExpandProperties=True, ProcessXml=True)]
public string LangVersion {get; set;}

#### Remarks

Corresponds with the `/langversion` flag.

#### See Also

CscTask Class | NAnt.DotNet.Tasks Namespace