Skip to content

VB version confusion #20147

@Youssef1313

Description

@Youssef1313

The article mentions Visual Basic 15.8, which I can't find in Roslyn source code. They define a LanguageVersion enum

https://github.com/dotnet/roslyn/blob/e704ca635bd6de70a0250e34c4567c7a28fa9f6d/src/Compilers/VisualBasic/Portable/LanguageVersion.vb#L12

with the following members:

    Public Enum LanguageVersion
        [Default] = 0
        VisualBasic9 = 9
        VisualBasic10 = 10
        VisualBasic11 = 11
        VisualBasic12 = 12
        VisualBasic14 = 14
        VisualBasic15 = 15
        VisualBasic15_3 = 1503
        VisualBasic15_5 = 1505
        VisualBasic16 = 1600

        Latest = Integer.MaxValue
    End Enum

I think that the mentioned improvement for VB 15.8 is actually done for Roslyn that shipped with VS 15.8, and that wasn't under a new language version. This also may mean that a previous PR of mine (#12884) could be wrong and should be reverted. I must have added that lang version based on what I've seen in this what's new article.

I also think Visual Basic 2017 should be Visual Basic 15.0 (that was the version shipped with Visual Studio 2017)


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions