Skip to content

Setting the LangVersion in .VBProj #26933

@AdamSpeight2008

Description

@AdamSpeight2008

Version Used:

Version 15.8.0 Preview 1.1
VisualStudio.15.Preview/15.8.0-pre.1.1+27705.2000
Microsoft .NET Framework
Version 4.7.03056

Visual Basic Tools   2.8.0-beta6-62830-08. Commit Hash: e595ee276d14e14bfb3eb323fb57f2aa668bddea
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <RootNamespace>TypeOfManyViaOperators_Example</RootNamespace>
    <TargetFramework>netcoreapp2.0</TargetFramework>
    <ApplicationManifest>My Project\app.manifest</ApplicationManifest>
    <StartupObject>Sub Main</StartupObject>
    <LangVersion>15.5</LangVersion>
  </PropertyGroup>
  <PropertyGroup>
    <LangVersion>15.5</LangVersion>
  </PropertyGroup>
</Project>

I've tried setting <LangVersion></LangVersion> in vbproj file with the following values and it seems to not be passed to the IDE or the Compiler via the VS2017 Experimental Instance.

15.3
15.5
Latest

As a result I am unable to test / try out my changes.
Note: The Unit Test is working correctly (well it indicate that it passes). (see [unittest](https://github.com/dotnet/roslyn/pull/26865/files#diff-b5061195acc1fa28a4ef716754f4b9d5)), Though I am directly setting the language version.

I would help if we enabled the following project feature for VB.net as well to add How-to-change-targeted-Csharp-version-in-Visual-St

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions