.NET Core not showing in target framework dropdown for visual studio 2022

Viewed 10827

I have installed .NET core 3.1 and verified i can run .NET core 3.1 apps on my machine however when i go to create a new project the dropdown for target frameworks only allows .NET 6.0. I am using visual studio 2022. I am using visual studio 2019 on my laptop and i can add .NET core projects just fine.

enter image description here

Has anyone ran into this?

3 Answers
  • Open Visual studio installer from start menu
  • Select Modify from Visual Studio that you want to add
  • in individual components select .net core or framework that you want to add to your visual studio version

1

2

3

Create the app in either 5 or 6. Then in the Application properties change the Target Framework to .Net 3.1.

Change in Visual Studio after Project Creation

Long term support is limited for anything before .Net 5, so they are not making it an option on new projects and directing to the newer versions.

I'm using VS2022 and was facing the same issue. I installed the .NET SDK 3.1.416 from here and restarted the VS. I am now able to create project with .NET core 3.1 target framework.

Target framework 3.1 - VS2022

Related