Valmont
Valmont

Reputation: 378

.NET 7 framework does not show up in Visual Studio 2022 version 17.4

After a long absence of C# I re-installed Visual Studio Community Version 2022 17.4.3.

Then I installed dotnet-sdk-7.0.101-win-x64.

Then I try to start a new console .NET application but I don't have the option to chose the .NET 7 framework. It goes only to up to to 4.8. Is that normal? What should I do to make version 7 visible?

Shows my framework options

Upvotes: 18

Views: 22330

Answers (4)

Jahuso
Jahuso

Reputation: 37

In mi case the only way to solve it was to get it from microsoft's dotnet site, make sure to download the SDK Framework and not the runtime version and then you will see the installed one after run the dotnet--list-sdks

dotnetlist

Upvotes: 1

zeina rawashdeh
zeina rawashdeh

Reputation: 1

I had the same problem, it got solved by doing the following:

1- open visual studio installer 2- on workloads tab check the following

  • .Net Desktop Development
  • Azure Development
  • ASP.Net and web development

3- hit modify

After that I was able to see .net6, .net7 in the frameworks drop down

Upvotes: 0

MGOwen
MGOwen

Reputation: 7259

Manually update Visual Studio 2022 to the latest version.

For some reason it doesn't automatically update to 17.5.x, which is required for .NET 7.0

Upvotes: 17

Guru Stron
Guru Stron

Reputation: 141940

When creating an application be sure to select correct template - Console App (without additional remarks):

enter image description here

You have selected a template targeting .NET Framework which does not allow targeting .NET (i.e. .NET Core) runtime by default.

Upvotes: 7

Related Questions