.NET Core, now .NET 8 and later, is the modern cross-platform successor to .NET Framework, and Microsoft has stopped developing .NET Framework. Migration means assessing API compatibility, updating NuGet packages and refactoring Windows-specific code.
Key takeaways
- Successor: .NET Core is the cross-platform successor to .NET Framework, now shipped as .NET 8 and later.
- Differences: 6 differences cover platform support, performance, deployment, tooling, hosting and support.
- Migration: 5 steps run from assessment to cutover, starting with API and package compatibility.
- When: Migrate first where active feature work or Linux hosting is planned.
- Dev Station: Dev Station runs .NET migrations for US and UK teams.
What are the six key differences between .NET Core and .NET Framework?
The .NET ecosystem has undergone a fundamental shift. Microsoft discontinued .NET Framework development after version 4.8.1, redirecting all innovation to .NET Core (rebranded as simply .NET starting with .NET 5). For enterprises still running .NET Framework applications, understanding the differences is critical to making an informed migration decision.
Side-by-Side Comparison
| Feature | .NET Framework | .NET Core / .NET 8+ |
|---|---|---|
| Platform | Windows only | Cross-platform (Windows, Linux, macOS) |
| Deployment | IIS-dependent | Kestrel, Docker, cloud-native |
| Performance | Baseline | Faster (Span<T>, SIMD, tiered JIT) |
| Support Status | Maintenance only (4.8.1 is final) | Active development (LTS releases) |
| Microservices | Limited (WCF only) | First-class (gRPC, minimal APIs) |
| Container Support | Poor (large images, IIS dependency) | Excellent (native Docker, minimal base images) |
How do you migrate from .NET Framework to .NET Core?
A successful migration requires careful planning. Rushing the process without assessing dependencies often leads to broken builds, missing NuGet packages, and runtime errors in production. The following five-step framework ensures a controlled, low-risk transition.
- Run the .NET Portability Analyzer. Before writing any code, run the Microsoft .NET Portability Analyzer against your existing assemblies. This tool generates a detailed report showing what percentage of your code is compatible with .NET Core, and flags specific APIs that require replacement.Most enterprise applications are largely compatible, with the remaining gaps concentrated in Windows-specific features like WCF, AppDomains, and reflection emit.
- Replace Incompatible NuGet Packages. Many legacy NuGet packages target .NET Framework only. Search for modern alternatives or check if the package author has released a .NET Standard-compatible version. Common replacements include switching from System.Configuration to Microsoft.Extensions.Configuration, and from WCF to gRPC or REST clients.
- Refactor Windows-Specific Dependencies. Replace WCF services with ASP.NET Core Web APIs or gRPC. Swap AppDomains for process isolation. Update registry access to use configuration files or environment variables. Remove IIS-specific modules and replace them with Kestrel middleware.
- Update Configuration and Dependency Injection. Migrate from web.config and app.config to appsettings.json. Implement built-in dependency injection using Microsoft.Extensions.DependencyInjection. Replace HttpContext.Current with IHttpContextAccessor injected via constructor.
- Deploy with Docker and Benchmark. Containerize the migrated application using a minimal .NET runtime base image. Deploy to your staging environment and run performance benchmarks against the legacy version.Teams usually see better throughput and memory usage after migration.
Which code changes does the migration need?
Configuration: Before vs After
// .NET Framework (web.config)
var connString = ConfigurationManager.ConnectionStrings["Db"].ConnectionString;
// .NET Core (appsettings.json + DI)
public class MyService
{
private readonly string _connString;
public MyService(IConfiguration config)
{
_connString = config.GetConnectionString("Db");
}
}
Startup: Before vs After
// .NET Framework (Global.asax)
protected void Application_Start()
{
GlobalConfiguration.Configure(WebApiConfig.Register);
}
// .NET Core (Program.cs)
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllers();
var app = builder.Build();
app.MapControllers();
app.Run();
When should you migrate?
Not every .NET Framework application needs immediate migration. Use the following criteria to prioritize:
- Migrate now: Web APIs, microservices, cloud-bound applications, and any project requiring cross-platform deployment or Docker containerization.
- Migrate soon: Internal web applications using ASP.NET MVC or Web API that are still in active development.
- Hold off: Desktop WPF applications (use .NET 8 for desktop instead), legacy WCF services with no modernization budget, or stable applications with no planned feature work.
What does a .NET migration service include?
Migrating a production .NET Framework application to .NET Core requires careful planning, automated test coverage, and zero-downtime deployment strategies. At Dev Station Technology, our custom software development services include end-to-end .NET migration with the following guarantees:
- Full API compatibility audit before any code changes
- Automated regression testing with broad code coverage
- Blue-green deployment strategy for zero-downtime cutover
- Post-migration performance benchmarking and optimization
- If your enterprise needs to hire .NET developers for migration projects, our Vietnam-based ODC provides senior engineers at competitive rates.
Whether you need to migrate a single microservice or an entire enterprise monolith, our team has the expertise to ensure a smooth, cost-effective transition to modern .NET.
Frequently asked questions
Five questions come up most often on this topic.
What is the difference between .NET Core and .NET Framework?
.NET Core is the open-source, cross-platform runtime that is now .NET 8 and later. .NET Framework is the Windows-only legacy runtime that Microsoft no longer develops.
Is .NET Framework still supported?
Microsoft has discontinued new development of .NET Framework, so new features arrive only in modern .NET.
How do you migrate from .NET Framework to .NET Core?
Assess API compatibility, update NuGet packages, refactor Windows-specific dependencies, test, then cut over with a staged deployment.
Which applications should migrate first?
Internal web applications on ASP.NET MVC or Web API that are in active development. Stable applications with no planned feature work can wait.
What does a safe cutover look like?
A blue-green deployment with automated regression tests and post-migration performance benchmarking.
Dev Station Technology builds backend, embedded and IoT software for teams in the United States and the United Kingdom, and helps teams pick and run the stack that fits the product. Device and telemetry data stays in your own cloud tenant, in the region your policy requires. Where a client needs SOC 2, HIPAA or UK GDPR evidence, we build the technical controls those frameworks ask for and work alongside the assessor who issues the certificate. Our engineers work from Vietnam with overlap into US Eastern, US Pacific and UK GMT hours, and we invoice in USD or GBP.
Want an AI assistant to summarize or cite this guide?
Click any link below to open the AI with a pre-filled prompt referencing this article:
Talk To Us
Tell us what you are building and what it has to connect to. An engineer answers, and you get a straight view of what the work would take.
Get In Touch →