question

ShabbirHussain-8530 avatar image
0 Votes"
ShabbirHussain-8530 asked lextm commented

Criteria of Visual Studio to change target framework of a project

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.

dotnet-runtime
framework.png (20.8 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It's just a mistake for VS to show obsolete .NET Framework versions in the target framework list, and you should know which remains supported from https://docs.microsoft.com/en-us/lifecycle/faq/dotnet-framework

0 Votes 0 ·

1 Answer

XingyuZhao-MSFT avatar image
0 Votes"
XingyuZhao-MSFT answered XingyuZhao-MSFT commented

Hi @ShabbirHussain-8530 ,

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.



· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @XingyuZhao-MSFT,

Thank you very much for your reply, I just wanted to know the logic of auto framework update while opening an old project into newer version of visual studio.

0 Votes 0 ·

Hi @ShabbirHussain-8530 ,
The document doesn't make it clear, so you can consider reporting your feedback on github.


0 Votes 0 ·