Migration of C# project from Visual studio 2010 to visual studio 2019

I, Tasmiya Kauser 21 Reputation points
2022-02-23T11:11:12.03+00:00

Hi,
I want to migrate the C# code(built with .Net Framework 4.0) in visual studio 2010 to Visual Studio 2019 and build the code by targeting it to .Net Framework 4.8, Can we directly migrate the code to Visual studio 2019 or we have to migrate it to intermediate versions of visual studio?

Thanks In Advance.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,861 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,608 questions
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 83,096 Reputation points
    2022-02-23T11:28:53.677+00:00

    It should work directly.
    When I open old C# projects (15-20 years old) in VS 2022, I just have to change the Target Framework, which is empty by default :

    177165-migration.gif

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful