简体   繁体   中英

.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.

在此处输入图像描述

Has anyone ran into this?

  • 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.

创建项目后 Visual Studio 中的更改

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.

目标框架 3.1 - VS2022

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM