Share via

Criteria of Visual Studio to change target framework of a project

Shabbir Hussain 21 Reputation points
Jun 30, 2021, 7:02 AM

I have to shift an old project (developed in visual studio 2005 .net framework 2.0) to DevOps. For that purpose I have opened that project in VS2019. Project converted and built successfully, but I noticed that target framework of project is showing as 4. After some research I read this (link is also given below)

110467-framework.png

visual-studio-multi-targeting-overview

I want to know that on which criteria VS decided to update or change target framework of that project. As .Net framework 2.0 is also supported in VS2019 and I don't want to change / update target framework.

Really appreciate your quick replies.

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,195 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Xingyu Zhao-MSFT 5,371 Reputation points
    Jul 1, 2021, 2:02 AM

    Hi @Shabbir Hussain ,

    As .Net framework 2.0 is also supported in VS2019 and I don't want to change / update target framework.

    If you update your .NET Framework to 4.x, you will get more support for new features and new project types.
    See: .NET Framework versions and dependencies

    So consider using your project in the new .NET Framework version.

    Besides, if you want to know more details of the document, you can post the feedback of this page.
    110739-screenshot-2021-07-01-095906.png

    Hope it could be helpful.

    Best Regards,
    Xingyu Zhao
    *
    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.