Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 677
Maxqueue Avatar asked Dec 13 '25 02:12

Maxqueue


2 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

like image 167
Saj Avatar answered Dec 14 '25 14:12

Saj


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.

like image 39
ΩmegaMan Avatar answered Dec 14 '25 15:12

ΩmegaMan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!