Events
17 Mar, 11 pm - 21 Mar, 11 pm
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Make the needed changes to build and run a .NET application before beginning the work to port your code. These changes can be done while still building and running a .NET Framework application.
Upgrade to a version of MSBuild/Visual Studio that supports the version of .NET you will be targeting. See Versioning relationship between the .NET SDK, MSBuild and VS for more info.
We recommend that you target your .NET Framework app to version 4.7.2 or higher. This ensures the availability of the latest API alternatives for cases where .NET Standard doesn't support existing APIs.
For each of the projects you wish to port, do the following in Visual Studio:
Because your projects now target .NET Framework 4.7.2, use that version of the .NET Framework as your base for porting code.
Convert all references to the PackageReference format.
Convert your projects to the SDK-style format.
Update dependencies to their latest version available, and to .NET Standard version where possible.
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Events
17 Mar, 11 pm - 21 Mar, 11 pm
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowTraining
Module
Modernize ASP.NET Framework to ASP.NET Core with the .NET Upgrade Assistant - Training
In this module, you'll learn to when, why, and how to modernize an ASP.NET Framework app to ASP.NET Core using the Upgrade Assistant.
Documentation
Port from .NET Framework to .NET 7 - .NET Core
Understand the porting process and discover tools you might find helpful when porting a .NET Framework project to .NET 7.
Learn about the .NET project SDKs.
Analyze dependencies to port code - .NET Core
Learn how to analyze external dependencies to port your project from .NET Framework to .NET.