Can't get VS Studio to see 6.0 or 8.0 Frameworks

2024-10-01T15:22:53.4133333+00:00

I've been at this a while and can't seem to figure out where I am going wrong.

I'm trying to get a .Net 6 or 8 Framework to show up when I create a windows forms .net app from the template. Only 4.x frameworks show up. I've reinstalled VS Studio countless times, multiple machines and have done induvial packages. Path is set correctly and I have both 6 and 8 SDKs installed.

donet --list-sdks shows correct and does dotnet --version

I've been spinning for days...and not sure where to go.

Developer technologies | Visual Studio | Setup
Developer technologies | .NET | Other
Developer technologies | Visual Studio | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2024-10-02T03:02:37.2133333+00:00

    Hi @Williamson, Jason Patrick, 

    Welcome to Microsoft Q&A!

    Are you using Visual Studio 2022? 

    When creating .NET 8.0 project, please ensure that you select the Windows Forms App project template not Windows Forms App (.NET Framework) template.

    User's image

    Besides, please search "Edit the system environment variables" in Windows Search box > Open it > Environment Variables… > System variables > select Path > Edit… > check if there are two paths to dotnet:

    C:\Program Files\dotnet

    C:\Porgram Files (x86)\dotnet 

    If you can find them, please click on the Move up button to move the entry C:\Program Files\dotnet before the x86 one.

    Then, re-launch your VS and create a Windows Forms App project to check if the .NET 8.0 is available. 

    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.

    1 person found this answer helpful.
    0 comments No comments

  2. Bruce (SqlWork.com) 78,006 Reputation points Volunteer Moderator
    2024-10-01T16:22:07.77+00:00

    with visual studio 2022 its the "Windows Form App" template, no "(.net framework)" suffix.

    0 comments No comments

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.