Insights & Blog

VB.NET Legacy Applications to .NET 10: Upgrade Strategy, Challenges and Best Practices

VB.NET still runs on .NET 10, but Web Forms, WCF hosting and BinaryFormatter do not. A practical upgrade strategy for VB.NET applications on .NET Framework.

By Hetal KSoftware Architecture, .NET & APIs

VB.NET order management app on .NET Framework with an old vbproj file transforming into a .NET 10 application with an SDK-style project, ASP.NET Core, gRPC and Azure

Upgrading a VB.NET application from .NET Framework to .NET 10 is a framework upgrade, not a rewrite. Visual Basic remains a supported language on .NET 10 for Windows Forms, WPF, class libraries, console apps, worker services and Web APIs, and Microsoft’s GitHub Copilot upgrade agent supports Visual Basic projects moving from any .NET Framework version to .NET 8 or later. The hard parts are the pieces .NET 10 does not carry forward (Web Forms, WCF hosting, Remoting, AppDomains, BinaryFormatter) and the decision whether to keep VB or move new work to C#.

Technically reviewed by Harshita Pipaliya.

This is the second article in our Legacy Modernization Series. Blog #1 covered VB6, a different problem: moving off COM and a 32-bit runtime. This guide assumes your code is already VB.NET and focuses on what is specific to Visual Basic estates: language support, the VB-versus-C# decision, My namespace and late-binding issues, and sequencing. For the language-neutral path, including Azure hosting choices and YARP routing in detail, see our guide to migrating a legacy .NET Framework application to .NET and Azure. If you are already on .NET 8, read .NET 10 vs .NET 8 upgrade planning instead.

Executive summary

  • .NET Framework is supported but frozen. Versions 4.8.1, 4.8 and 4.7.2 have no announced end date and follow Microsoft’s Component Lifecycle Policy; 4.6.2 reaches end of support in January 2027, and 3.5 SP1 in January 2029 (Microsoft Lifecycle). New platform investment goes into .NET, not .NET Framework.
  • .NET 10 is the target. It is the current LTS release, supported until November 14, 2028; .NET 8 and .NET 9 reached end of support on November 10, 2026 (.NET support policy).
  • VB.NET can come along. Visual Basic supports Windows Forms, WPF, class libraries, console, worker services and ASP.NET Core Web API on modern .NET (VB team announcement), but Microsoft’s strategy is “consumption-only” with no new workloads (VB language strategy).
  • Tooling has changed. The .NET Upgrade Assistant is deprecated; the GitHub Copilot upgrade agent now handles assessment, planning and execution, including for Visual Basic projects (Microsoft Learn).
  • Our recommendation: upgrade VB.NET libraries and desktop apps in place to .NET 10, write new modules in C#, and replace Web Forms and WCF server components through incremental, side-by-side migration rather than a single cutover.

Is .NET Framework still supported?

Yes, with important caveats. From Microsoft’s lifecycle page:

VersionSupport status (as listed by Microsoft)
.NET Framework 4.8.1Supported, no end date listed
.NET Framework 4.8Supported, no end date listed
.NET Framework 4.7.2Supported, no end date listed
.NET Framework 4.6.2End of support January 12, 2027
.NET Framework 4.5.2, 4.6, 4.6.1Ended April 26, 2022
.NET Framework 3.5 SP1End of support January 9, 2029

Source: Microsoft .NET Framework lifecycle.

“Supported” here means security and reliability fixes for an existing platform. The modern runtime, libraries, performance work, C# language versions, ASP.NET Core and most new Azure SDK features target .NET. If your applications are on 4.6.2 or earlier, you have a hard deadline in January 2027 regardless of any longer-term plans.

What Visual Basic can and cannot do on .NET 10

WorkloadVB on modern .NETNotes
Class librariesYesThe safest place to start
Console appsYes
Windows FormsYesIncluding the VB Application Framework (startup form, splash screen, single-instance)
WPFYes
Worker Service (Windows services)YesReplaces ServiceBase-style projects
ASP.NET Core Web APIYesControllers in VB
Razor Pages, MVC views, BlazorNo (C# only)Razor syntax is C#
New language featuresConsumption onlyVB can use new library features but gets little new syntax

Microsoft states that Visual Basic “won’t be extended to new workloads” and that it will continue to invest in “core Visual Basic scenarios such as Windows Forms and libraries” (VB language strategy). In .NET 10 itself, the VB compiler changes are about consumption: respecting OverloadResolutionPriorityAttribute and enforcing the unmanaged constraint so VB can call newer C# libraries (What’s new in .NET 10).

What that means in practice: a VB.NET Windows Forms or WPF application, its class libraries and its back-office services can move to .NET 10 in VB. A VB.NET web front end cannot stay in VB once it becomes ASP.NET Core with server-rendered UI.

Why upgrade if .NET Framework still works?

  1. Library ecosystem drift. Many NuGet packages and Azure SDKs now ship only for modern .NET, or ship their newest features there first. Every year on .NET Framework widens the gap.
  2. Performance and hosting cost. .NET brings a faster runtime, better async I/O, containers, Linux hosting for APIs and Arm64 support. For server workloads that can translate into fewer or smaller servers; measure it for your own workload rather than assuming a figure.
  3. Security posture. Modern authentication libraries, TLS defaults and dependency scanning are designed around current .NET. Old packages pinned to .NET Framework are a frequent audit finding.
  4. Talent and tooling. New engineers learn modern .NET. Tooling such as the Copilot upgrade agent, hot reload and current analyzers target SDK-style projects.
  5. Deadlines you do not control. The 4.6.2 end-of-support date, a vendor dropping .NET Framework support, or a cloud migration programme can force the upgrade at an inconvenient time.

.NET Framework 4.8 vs .NET 10 comparison

Area.NET Framework 4.8 / 4.8.1.NET 10
LifecycleComponent of Windows; fixes onlyLTS to November 14, 2028; yearly releases
OSWindows onlyWindows for desktop UI; Windows, Linux and macOS for services and APIs
Project formatVerbose .vbproj, packages.configSDK-style, PackageReference, central package management
WebASP.NET Web Forms, MVC 5, Web API 2 on IIS/System.WebASP.NET Core (Kestrel, IIS, containers)
ServicesWCF server, Windows services, RemotingASP.NET Core Web API, gRPC, CoreWCF, worker services
DeploymentMachine-wide framework installFramework-dependent, self-contained, single-file, containers
Configurationapp.config / web.configappsettings.json, environment variables, Key Vault
Dependency injectionThird-party containersBuilt in
SerializationBinaryFormatter availableBinaryFormatter removed (throws since .NET 9)

Keep VB.NET or move to C#?

This is the decision that most shapes cost. Our view:

SituationRecommendation
Stable desktop app, team fluent in VB, limited new feature workUpgrade in VB to .NET 10; write new libraries in C#
App will gain a web or mobile front endKeep back-end libraries in VB short term; new UI and APIs in C#
Heavy ongoing development, hiring plannedPlan a gradual move to C#, module by module
Code quality is poor and needs refactoring anywayConvert to C# during refactoring rather than as a separate project

VB and C# projects can coexist in the same solution and reference each other’s assemblies, so this does not have to be a big-bang decision. Avoid converting a working VB codebase to C# only for language preference: it adds risk without adding features. Convert where you are already changing code.

Upgrade approaches by application type

Application typeApproachEffortNotes
Class librariesIn-place upgrade; multi-target net481;net10.0 during transitionLowStart here; unblock everything above
Windows Forms (VB)In-place upgrade to net10.0-windowsLow to mediumThird-party control suites are the usual blocker
WPF (VB)In-place upgradeLow to mediumCheck designer-dependent custom controls
Windows servicesRebuild host as a worker service; reuse logicLow to mediumUse UseWindowsService()
ASP.NET Web API 2Port to ASP.NET Core Web API (VB or C#)MediumRouting, filters and auth change
ASP.NET MVC 5Incremental migration to ASP.NET Core MVC (C# views)Medium to highCovered in a later guide in this series
ASP.NET Web FormsRe-platform to Blazor or Razor Pages (C#)HighSee how to modernize a legacy ASP.NET Web Forms application
WCF servicesCoreWCF, ASP.NET Core Web API or gRPCMedium to highCovered in a later guide in this series

For web applications, Microsoft recommends incremental migration, “an implementation of the Strangler Fig pattern”: a new ASP.NET Core application sits in front and proxies unmigrated requests to the original .NET Framework app using YARP, with System.Web adapters helping shared libraries and authentication work across both (Microsoft Learn: incremental migration). The VB-specific point is that the new ASP.NET Core front end will be C# if it uses Razor, while VB controllers and libraries can stay VB.

Weighing VB.NET against a full C# move? Consult our .NET modernization experts for an upgrade assessment of your solution.

Blocking technologies and their replacements

These .NET Framework technologies are not available on .NET 10. The replacements are Microsoft’s documented alternatives (Microsoft Learn) plus our recommendations where Microsoft gives none.

TechnologyStatus on .NET 10Replacement
AppDomains (CreateDomain)Throws PlatformNotSupportedExceptionSeparate processes or containers; AssemblyLoadContext for dynamic loading
.NET RemotingNot availablePipes, MemoryMappedFile or StreamJsonRpc locally; HTTP or sockets across machines
Code Access SecurityNot availableOS-level boundaries: containers, virtualization, least-privilege accounts
WCF server hostingNot in the boxCoreWCF NuGet packages, or redesign as Web API or gRPC
Windows Workflow FoundationNot availableCoreWF (community), Durable Functions or a workflow engine (our suggestion)
System.EnterpriseServices (COM+)Not availableNo direct replacement; redesign transactions and hosting
ASP.NET Web Forms / System.WebNot availableBlazor or Razor Pages, migrated incrementally
BinaryFormatterRemoved (throws since .NET 9)System.Text.Json, XML or protobuf, plus a data migration plan for stored blobs
Delegate BeginInvoke/EndInvokeThrowsTask.Run and Async/Await
XSLT script blocksNot supportedMove script logic into extension objects or code

Run an inventory for these first. In most VB.NET estates we assess, two or three of them account for most of the upgrade risk.

Step-by-step upgrade roadmap

Upgrade sequence for a VB.NET solution: assess, retarget to .NET Framework 4.8.1, convert to SDK-style projects, upgrade libraries bottom-up with multi-targeting, upgrade applications, replace blockers, then remove .NET Framework targets

1. Assess (1 to 3 weeks)

  • Run the GitHub Copilot upgrade agent’s assessment on each solution, alongside a manual review.
  • Map the project dependency graph, NuGet packages, third-party controls (grids, reporting, charting), COM references and P/Invoke calls.
  • Flag every blocker from the table above.

2. Stabilise on .NET Framework 4.8.1

  • If you are on 4.6.2 or earlier, retarget to 4.8.1 first. It is a low-risk step, removes the January 2027 deadline, and gives you a clean baseline.
  • Turn on Option Strict On per file or project where feasible; it surfaces late-binding issues early.

3. Convert to SDK-style projects

  • Move each .vbproj to the SDK format and packages.config to PackageReference, still targeting net481. This separates project-format churn from runtime change.

4. Upgrade libraries bottom-up

  • Microsoft recommends upgrading libraries in “postorder depth-first” order: leaf libraries first, then the projects that depend on them.
  • Multi-target (net481;net10.0) so both old and new applications can consume them during transition. Use .NET Standard 2.0 only where you must share with very old consumers.

5. Upgrade applications

  • Desktop apps: retarget to net10.0-windows, replace incompatible controls, re-test designers.
  • Services: move to worker services.
  • Web: start the ASP.NET Core front end with YARP proxying, then migrate routes incrementally.

6. Replace blockers and remove old targets

  • Re-implement WCF, Remoting, BinaryFormatter and similar dependencies.
  • Drop the net481 target once every consumer is on .NET 10.

7. Harden and hand over

  • Add CI/CD, analyzers, dependency scanning and telemetry; document the next LTS upgrade path.

VB-specific upgrade issues

Project file before and after (illustrative):

<!-- Before: .NET Framework 4.6.1 (abridged) -->
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
    <MyType>WindowsForms</MyType>
    <OptionStrict>Off</OptionStrict>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System.Web.Services" />
    <Compile Include="MainForm.vb" />
    <!-- ...hundreds of explicit Compile items... -->
  </ItemGroup>
</Project>
<!-- After: .NET 10 SDK-style -->
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net10.0-windows</TargetFramework>
    <UseWindowsForms>true</UseWindowsForms>
    <MyType>WindowsForms</MyType>
    <OptionStrict>On</OptionStrict>
    <OptionInfer>On</OptionInfer>
  </PropertyGroup>
</Project>

Replacing BinaryFormatter (illustrative VB):

' Before (.NET Framework): BinaryFormatter, now removed
' Dim bf As New BinaryFormatter()
' bf.Serialize(stream, order)

' After (.NET 10): System.Text.Json
Imports System.Text.Json

Public Module OrderStore
    Public Async Function SaveAsync(order As Order, path As String) As Task
        Await Using fs = IO.File.Create(path)
        Await JsonSerializer.SerializeAsync(fs, order)
    End Function
End Module

If BinaryFormatter output is stored in a database or files, plan a one-off conversion while the old format can still be read on .NET Framework.

Other VB-specific checks:

AreaWhat to check
Option Strict Off and late bindingLate-bound calls, especially to COM objects, need explicit testing; prefer typed interop
My namespaceInventory My.Computer, My.Settings, My.Resources, My.User, My.WebServices usage and test each; My.WebServices depends on ASMX/WCF clients that must be regenerated
Application FrameworkStartup form, splash screen and single-instance settings work on Windows Forms; re-verify ApplicationEvents.vb
Microsoft.VisualBasic compatibility functionsLeft, Mid, CInt, IIf and file functions still work; plan to retire Microsoft.VisualBasic.Compatibility (VB6 upgrade leftovers)
Web service referencesASMX and WCF client proxies must be regenerated with dotnet-svcutil or replaced with HttpClient
Event handlingHandles and WithEvents work as before; check designer-generated code after control replacement

Data, configuration and integration

  • SQL Server access: move from System.Data.SqlClient to Microsoft.Data.SqlClient. Note that newer versions encrypt connections by default, so certificates or connection-string settings may need attention.
  • Entity Framework: EF6 runs on modern .NET, which allows an upgrade without a data-layer rewrite. Move to EF Core later if you need its features.
  • Configuration: System.Configuration.ConfigurationManager is available as a package for a smooth start; migrate to Microsoft.Extensions.Configuration and the Options pattern over time.
  • Reporting: Crystal Reports, RDLC/ReportViewer and charting controls are frequent blockers. Confirm each vendor’s .NET 10 support before planning dates.
  • Integration: use the upgrade to replace file drops and tightly coupled database integrations with APIs or messaging (Azure Service Bus) where it reduces risk.

Security and governance

  • Replace stored credentials with Azure Key Vault or managed identities.
  • Move authentication to Microsoft Entra ID with MSAL (desktop) or OpenID Connect (web).
  • Enable NuGet vulnerability auditing in builds; remove packages without .NET 10 support.
  • Sign assemblies and installers; ship from CI, not developer machines.
  • Record an architecture decision for each blocker replacement, so auditors and future teams can follow the reasoning.

Testing and deployment

Testing

  • Build a regression suite before changing frameworks: unit tests on libraries, API contract tests, and UI automation on critical desktop flows.
  • Compare outputs (reports, exports, calculations) between the .NET Framework and .NET 10 builds on the same data.
  • Run performance baselines; most server code gets faster, but verify hotspots such as reflection-heavy or serialization-heavy code.

Deployment

  • Desktop: MSIX or ClickOnce, or self-contained builds that avoid a machine-wide runtime install.
  • Services and APIs: Azure App Service, Azure Container Apps or Windows containers where a dependency still needs Windows.
  • Keep both versions deployable during transition, with feature flags or routing (YARP) to switch traffic.
  • Plan the next LTS upgrade (.NET 12, expected November 2027 under Microsoft’s annual cadence) before .NET 10 support ends in November 2028.

Request an estimate

Cost and timeline depend on your application, data and integrations, so we estimate each project individually rather than publish price ranges. The biggest cost drivers are Web Forms screens, WCF server endpoints, unsupported third-party controls and missing tests.

Request an estimate for your application, or read legacy application modernization cost and ROI to build the business case.

Best practices

  1. Retarget to 4.8.1 first if you are on an older .NET Framework.
  2. Separate project-format changes from runtime changes; commit each separately.
  3. Upgrade libraries bottom-up and multi-target during transition.
  4. Use the Copilot upgrade agent as an accelerator, and review every change it makes.
  5. Turn on Option Strict progressively to catch late-binding problems.
  6. Kill BinaryFormatter early and migrate stored data.
  7. Write new modules in C#, keep stable VB code as VB.
  8. Migrate web apps incrementally with YARP rather than freezing features for a rewrite.

FAQs

Is VB.NET supported on .NET 10?

Yes. Visual Basic is supported on .NET 10 for Windows Forms, WPF, class libraries, console apps, worker services and ASP.NET Core Web API. Microsoft does not plan new workloads or significant new syntax for the language.

Can the GitHub Copilot upgrade agent upgrade VB.NET projects?

Yes. Microsoft lists support for C# and Visual Basic projects, including Windows Forms, WPF, class libraries, console apps and ASP.NET projects, from any .NET Framework version to .NET 8 or later. Results still need review and testing.

Should we convert VB.NET to C# during the upgrade?

Not by default. Upgrade VB in place, write new code in C#, and convert modules you are already rewriting. Wholesale conversion adds risk without adding functionality.

Can ASP.NET Web Forms written in VB run on .NET 10?

No. Web Forms is not available on .NET 10. It must be re-platformed to Blazor or Razor Pages, which use C#. Our guide to modernizing a legacy ASP.NET Web Forms application covers the options.

Is .NET Framework 4.8 being retired?

No end date is listed for .NET Framework 4.8 or 4.8.1. They receive fixes but no new platform features. .NET Framework 4.6.2 does have an end date, January 12, 2027.

Should we target .NET 10 or .NET 11?

.NET 10 for most enterprise upgrades: it is the LTS release supported until November 2028. .NET 11 is a shorter-term STS release.

How long does a VB.NET upgrade take?

From about a month for a small desktop app to well over a year for large estates with Web Forms and WCF. A short assessment of the dependency graph and blockers gives a reliable estimate.

Conclusion

A VB.NET application on .NET Framework is not a dead end, but it is on a platform that has stopped moving. Upgrading to .NET 10 is mostly engineering discipline: stabilise on 4.8.1, modernise the project format, upgrade libraries from the bottom up, and replace the handful of technologies that did not make the jump. Keep VB where it works, write new code in C#, and migrate web front ends incrementally. The result is a codebase that can take on cloud, API and AI work, and a predictable path to the next LTS.

Next in this series: Classic ASP to ASP.NET Core: Modernizing Legacy VBScript-Based Web Applications.

Related services: Legacy Software Modernization · .NET Development · Microsoft Azure · Hire .NET Core Developers

Sources

Plan your VB.NET upgrade to .NET 10

Share your solution structure, blockers and release calendar. Talk to our .NET modernization team about an upgrade assessment and a bottom-up migration plan.

From insight to implementation

Turn these ideas into a practical plan

Discuss how the ideas in this article apply to your business, systems and data. We’ll help you identify a focused first step.