Reputation: 11
I want to upgrade my code from .NET4.8 to .net6 and I have code in visual basic and C# language so my question is that is visual basic supported on .net6 and if it is then what is the lowest version of visual basic that is supported in .net6 .
I have been finding resource online but i am not getting appropriate answer
Upvotes: 1
Views: 2473
Reputation: 1558
Language support is backward compatible. You could ask what's the highest version the compiler would support. And yes, VB.NET is supported in net6 and further.
As per https://learn.microsoft.com/en-us/dotnet/visual-basic/language-reference/configure-language-version:
<PropertyGroup>
<LangVersion>latest</LangVersion>
</PropertyGroup>
The value latest uses the latest minor version of the Visual Basic language. Valid values are:
Value | Meaning |
---|---|
default | The compiler accepts all valid language syntax from the latest major version that it can support. |
9 | The compiler accepts only syntax that is included in Visual Basic 9.0 or lower. |
10 | The compiler accepts only syntax that is included in Visual Basic 10.0 or lower. |
11 | The compiler accepts only syntax that is included in Visual Basic 11.0 or lower. |
12 | The compiler accepts only syntax that is included in Visual Basic 12.0 or lower. |
14 | The compiler accepts only syntax that is included in Visual Basic 14.0 or lower. |
15 | The compiler accepts only syntax that is included in Visual Basic 15.0 or lower. |
15.3 | The compiler accepts only syntax that is included in Visual Basic 15.3 or lower. |
15.5 | The compiler accepts only syntax that is included in Visual Basic 15.5 or lower. |
16 | The compiler accepts only syntax that is included in Visual Basic 16 or lower. |
16.9 | The compiler accepts only syntax that is included in Visual Basic 16.9 or lower. |
latest | The compiler accepts all valid language syntax that it can support. |
Upvotes: 1