How Convert .Net Framework to .Net Core?

Let’s convert .net console project to .net core.

Requirements.

Microsoft released a dedicated extension to visualize or check your application is able to migrate to the other .Net Frameworks. Click here

1.) Install .net core SDK by following command:

dotnet tool install -g try-convert

2.) try convert tool

-p, –project
-w, –workspace
–target-framework, -tfm
–preview
–diff-only
–no-backup
–keep-current-tfms

>> Open Existing .csproj from your application and command prompt as administrator.

>> Run the below command and it will create .csproj

try-convert -p HelloWorldDotNetFramework.csproj

Default backup is enable but there is no overriding option avialable.

Check before migrate project structure and after migrataion structure



Leave a Reply

Your email address will not be published. Required fields are marked *