PROVIDER - the most readable syntax in the .NET ecosystem
VB.NET
VB.NET has shipped since .NET Framework 1.0 in 2002, sharing the runtime and class libraries with C# and covering 3 scenarios - LINQ, async and desktop - with readability-first syntax; it remains the backbone of many enterprise estates, but Microsoft has frozen new features and new work fits C# better.
Detailed Notes
Pros 5 items
Cons 4 items
Service Overview
VB.NET shipped in 2002 with .NET Framework 1.0 as Visual Basic's continuation on .NET. It compiles to the same intermediate language as C# and shares the runtime and class libraries.
In the languages and frameworks category it represents the readability-first .NET route: syntax close to natural language, long serving internal enterprise and desktop systems.
Key Strengths
- Readable syntax: case insensitivity,
WithandHandlesreduce the reading burden - C# interop: both call each other in one solution, so migration can be staged
- Complete capability: LINQ, async and desktop frameworks are all present
- Large install base: many enterprise systems still need maintenance, so demand remains steady
- Mature tooling: Visual Studio provides full design, debug and publish support
Product Ecosystem
Language and runtime
Both .NET Framework and modern .NET runtimes, the VB compiler and the Visual Basic runtime library.
Frameworks and scenarios
WinForms and WPF desktop apps, legacy ASP.NET Web Forms sites, and Office or Excel automation.
Tooling
Visual Studio designers, NuGet package management and .NET upgrade assistants.
Limitations
- Frozen features: Microsoft no longer adds new syntax or capabilities to VB.NET
- Documentation drift: new samples are C#-first, with VB.NET versions fading
- Talent erosion: hiring and handover costs keep rising
- Ecosystem lag: some new frameworks ship C#-only samples or source generator support
Use Cases
- Maintaining enterprise estates (★★★★★): modernisation and repair demand persists
- Internal desktop tools (★★★★): WinForms is productive
- Office and reporting automation (★★★★): approachable syntax for non-specialist developers
- Brand new projects (★★): C# is the better start
Pricing
| Item | Price | Notes |
|---|---|---|
| .NET SDK and VB compiler | $0 | Open source, ships with the SDK |
| Visual Studio Community | $0 | Free for individuals and small teams |
| Visual Studio Enterprise | Per seat subscription | Team collaboration and advanced debugging |
Language and base tools are free; cost sits in maintenance staffing and migration work.
FAQ
- Is VB.NET still usable? Yes. It remains supported in .NET and ships with the platform, though new language features are no longer added.
- Should code move to C#? New actively developed modules are better in C#, while stable older modules can stay and be replaced gradually.
- Does performance differ from C#? Both compile to the same IL, so runtime performance is essentially equal; differences come from coding style and library choice. More .NET options are under languages and frameworks.
Code Examples
A module with a LINQ query
Imports System.Linq
Module Program
Class Employee
Public Property Name As String
Public Property Salary As Decimal
End Class
Sub Main()
Dim staff = New List(Of Employee) From {
New Employee With {.Name = "Ann", .Salary = 12000D},
New Employee With {.Name = "Bob", .Salary = 8000D}
}
Dim highPaid = From e In staff
Where e.Salary > 10000D
Order By e.Salary Descending
Select e.Name
For Each name In highPaid
Console.WriteLine(name)
Next
End Sub
End Module
From ... Where ... Select is query expression syntax that the compiler translates into LINQ method calls.
Async with exception handling
Private Async Function LoadAsync(url As String) As Task(Of Integer)
Try
Using client As New HttpClient()
Dim body = Await client.GetStringAsync(url)
Return body.Length
End Using
Catch ex As HttpRequestException
Return 0
End Try
End Function
Async and Await preserve sequential reading order, and Using guarantees the HttpClient is disposed.
Community & Resources
- VB.NET documentation: language reference, tutorials and migration guides
- GitHub VB.NET topic: open projects and samples
- GitHub Dotnet topic: the .NET ecosystem at a glance
- GitHub C# topic: the mainstream language on the same runtime
- GitHub WinForms topic: the desktop scenario