How to add .NET Framework 6.0 & 7,0 to VS 2022

Jeff Stiegler 466 Reputation points
2023-11-06T21:37:24.0166667+00:00

I have installed .NET SDK for 6.0 and 7.0 but they do not appear on the Target framework drop down under Properties. How do I add these?

VS Target Framework

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,370 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 30,791 Reputation points Microsoft Vendor
    2023-11-09T07:20:46.12+00:00

    Hi @Jeff Stiegler

    Welcome to Microsoft Q&A! 

    As the Ronald Rex suggests, you can target .NET 6.0 or 7.0 in your application by modifying the target framework in your project file (e.g. .csproj): 

    <TargetFramework>net6.0</TargetFramework>
    

    Or you can install the .NET Upgrade Assistant extension to upgrade apps from .NET Framework to .NET. (Please backup your projects before using the tool.) 

    Sincerely,

    Anna


    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.

    2 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.