Reputation: 378
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?
Upvotes: 18
Views: 22330
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
Upvotes: 1
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
3- hit modify
After that I was able to see .net6, .net7 in the frameworks drop down
Upvotes: 0
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
Reputation: 141940
When creating an application be sure to select correct template - Console App (without additional remarks):
You have selected a template targeting .NET Framework which does not allow targeting .NET (i.e. .NET Core) runtime by default.
Upvotes: 7