How to develop .net full framework 4.8 class library with VS2022

EuroEager2008 171 Reputation points
2023-03-07T19:50:35.7733333+00:00

Using VS2022 and it's a long time since I needed to develop anything non net core stuff.

However, today I needed to make a class library targeting .net 4.8 but am not able to find any template other than the core "family" of frameworks as shown below.

What am I doing wrong?
(4.8 SDK is installed and verified by RegEdit)

User's image

Developer technologies | C#
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Castorix31 90,686 Reputation points
    2023-03-07T20:08:09.52+00:00

    Select .NET Framework :

    User's image

    3 people found this answer helpful.

  2. Bruce (SqlWork.com) 77,926 Reputation points Volunteer Moderator
    2023-03-07T20:29:36.1933333+00:00

    the 4.8 workloads are not installed by default in vs 2022.

    use the visual studio installer, modify, then

    net desktop development -> optional 4.8 dev tools

    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.