Visual Studio 2022 can't creat new project with .net 6.0 or 7.0

Ben Alexander 20 Reputation points
2023-07-18T19:12:25.5166667+00:00

I installed VS2022 Pro and I can't seem to create new projects with anything higher than .net 4.8.1. I have .net 6.0 and 7.0 installed and I show the .net 6.0 and 7.0 runtime in the VS installer.

I have uninstalled and reinstalled VS2022 and deleted the entire C:\program files\MSVS folder before re-installing.

I am not entirely sure what I am doing wrong, but I would like to be able to use .net6.0 and 7.0 features.

User's image

User's image

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,182 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,432 questions
{count} votes

Accepted answer
  1. Jiale Xue - MSFT 18,281 Reputation points Microsoft Vendor
    2023-07-19T02:49:52.9166667+00:00

    Hi @Ben Alexander , Welcome to Microsoft Q&A.

    Maybe you created the wrong project.

    Note the (.net Framework) behind the template.

    You cannot create a .Net Framework project for .net 6/7.

    User's image

    enter image description here

    Best Regards,

    Jiale


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful