You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/csharp/language-reference/compiler-options/langversion-compiler-option.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "-langversion (C# Compiler Options)"
3
-
ms.date: 07/20/2015
3
+
ms.date: 05/14/2018
4
4
f1_keywords:
5
5
- "/langversion"
6
6
helpviewer_keywords:
@@ -32,12 +32,13 @@ Causes the compiler to accept only syntax that is included in the chosen C# lang
32
32
|5|The compiler accepts only syntax that is included in C# 5.0 or lower <supid="TCS5">[CS5](#FCS5)</sup>|
33
33
|6|The compiler accepts only syntax that is included in C# 6.0 or lower <supid="TCS6">[CS6](#FCS6)</sup>|
34
34
|7|The compiler accepts only syntax that is included in C# 7.0 or lower <supid="TCS7">[CS7](#FCS7)</sup>|
35
+
|7.1|The compiler accepts only syntax that is included in C# 7.1 or lower <supid="TCS71">[CS71](#FCS71)</sup>|
36
+
|7.2|The compiler accepts only syntax that is included in C# 7.2 or lower <supid="TCS72">[CS72](#FCS72)</sup>|
37
+
|7.3|The compiler accepts only syntax that is included in C# 7.3 or lower <supid="TCS73">[CS73](#FCS73)</sup>|
35
38
|latest|The compiler accepts all valid language syntax that it can support. <supid="TLatest">[Latest](#FLatest)</sup>|
39
+
36
40
<!--- Uncomment and move these above
37
-
|latest| once they're officially released
38
-
|7.1|The compiler accepts only syntax that is included in C# 7.1 or lower <sup id="TCS71">[CS71](#FCS71)</sup>|
39
-
|7.2|The compiler accepts only syntax that is included in C# 7.2 or lower <sup id="TCS71">[CS72](#FCS72)</sup>|
40
-
|8|The compiler accepts only syntax that is included in C# 8 or lower <sup id="TCS71">[CS8](#FCS8)</sup>|
41
+
|8|The compiler accepts only syntax that is included in C# 8 or lower <sup id="TCS8">[CS8](#FCS8)</sup>|
41
42
-->
42
43
43
44
@@ -63,23 +64,21 @@ Causes the compiler to accept only syntax that is included in the chosen C# lang
63
64
For information about how to set this compiler option programmatically, see <xref:VSLangProj80.CSharpProjectConfigurationProperties3.LanguageVersion%2A>.
[Managing Project and Solution Properties](/visualstudio/ide/managing-project-and-solution-properties)
68
69
69
70
### C# Language Specification
70
-
[C# Language Specification Reference](../../../csharp/language-reference/language-specification/index.md) : .NET Foundation
71
+
[C# Language Specification Reference](../language-specification/index.md) : .NET Foundation
71
72
C# 1.0/1.1 [ISO/IEC 23270:2003](https://www.iso.org/standard/36768.html) Information technology -- C# Language Specification : ISO Catalogue
72
73
C# 2.0 [ISO/IEC 23270:2006](https://www.iso.org/standard/42926.html) Information technology -- C# Language Specification : ISO Catalogue
73
74
C# 2.0 [c042926_ISO_IEC_23270_2006(E).zip](http://standards.iso.org/ittf/PubliclyAvailableStandards/c042926_ISO_IEC_23270_2006(E).zip) ISO/IEC 23270:2006 in PDF format : ISO Freely Available Standards
74
75
C# 3.0 [CSharp Language Specification.doc](http://download.microsoft.com/download/3/8/8/388e7205-bc10-4226-b2a8-75351c669b09/CSharp%20Language%20Specification.doc) C# Language Specification Version 3.0 : Microsoft Corporation
75
76
C# 4.0 [Ecma-334.pdf](https://www.ecma-international.org/publications/files/ECMA-ST/Ecma-334.pdf) Standard ECMA-334 4th Edition
76
-
C# 5.0 [CSharp Language Specification.docx](https://www.microsoft.com/download/details.aspx?id=7029) C# Language Specification Version 5.0 : Microsoft Corporation
77
+
C# 5.0 [Ecma-334.pdf](https://www.ecma-international.org/publications/files/ECMA-ST/Ecma-334.pdf) Standard ECMA-334 5th Edition
77
78
C# 6.0 [README.md](https://github.com/dotnet/csharplang/blob/master/spec/README.md) C# Language Specification Version 6 - Unofficial Draft : .NET Foundation
78
-
C# 7.0 (not currently available)
79
+
C# 7.0 and later (not currently available)
79
80
80
81
<!--- Uncomment and add to the above when they become officially released
81
-
C# 7.1 (spec is not yet finished)
82
-
C# 7.2 (spec is not yet finished)
83
82
C# 8.0 (spec is not yet finished)
84
83
-->
85
84
@@ -90,10 +89,11 @@ Causes the compiler to accept only syntax that is included in the chosen C# lang
90
89
[↩](#TCS4)<aname="FCS4">CS4</a>: Microsoft Visual Studio/Build Tools 2010 or bundled .Net Framework 4.0 compiler
91
90
[↩](#TCS5)<aname="FCS5">CS5</a>: Microsoft Visual Studio/Build Tools 2012 or bundled .Net Framework 4.5 compiler
92
91
[↩](#TCS6)<aname="FCS6">CS6</a>: Microsoft Visual Studio/Build Tools 2015
93
-
[↩](#TCS7)<aname="FCS7">CS7</a>, <aname="FLatest">Latest</a>: Microsoft Visual Studio/Build Tools 2017
92
+
[↩](#TCS7)<aname="FCS7">CS7</a>: Microsoft Visual Studio/Build Tools 2017
93
+
[↩](#TCS71)<aname="FCS71">CS71</a>: Microsoft Visual Studio/Build Tools 2017, version 15.3
94
+
[↩](#TCS72)<aname="FCS72">CS72</a>: Microsoft Visual Studio/Build Tools 2017, version 15.5
95
+
[↩](#TCS73)<aname="FCS73">CS73</a>, <aname="FLatest">Latest</a>: Microsoft Visual Studio/Build Tools 2017, version 15.7
94
96
95
97
<!--- Uncomment and add to the above when they become officially released
96
-
[↩](#TCS71)<a name="FCS71">CS71</a>: Microsoft Visual Studio/Build Tools 20??
97
-
[↩](#TCS72)<a name="FCS72">CS72</a>: Microsoft Visual Studio/Build Tools 20??
98
-
[↩](#TCS8)<a name="FCS71">CS8</a>: Microsoft Visual Studio/Build Tools 20??
98
+
[↩](#TCS8)<a name="FCS8">CS8</a>: Microsoft Visual Studio/Build Tools 20??
0 commit comments