Visual studio .net problem

Денис Швацкий 1 Reputation point

I reinstalled windows 10. Installed visual studio 2022.

When start a project, .NET framework 4.0 is required

Error when installing .NET framework 4.0

Microsoft .NET Framework 4 is already part of this operating system. Installation of the .NET Framework 4 Redistributable is not required

How to start a project? Update it to last .NET framework?


Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,864 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,961 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,772 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,137 questions
{count} votes

4 answers

Sort by: Most helpful
  1. satya karki 986 Reputation points MVP

    Hi @Денис Швацкий , if you are still having issues then it may be helpful for you. Visual Studio 2022 supports .NET Framework 4.6 to the upper version. So go to Visual Studio installer -->modify -->individual component -->select the required framework and install it(click Modify option). I would recommend the latest one. Then open the project and upgrade it to the available target framework that you have installed.176531-target-pack.png

    1 person found this answer helpful.

  2. Castorix31 82,406 Reputation points

    Have you installed ".NET Desktop Development" ?

    Like in the picture :

    To install the .NET Framework Developer Pack or Targeting Pack

  3. EckiS 821 Reputation points

    This has nothing to do with installing the .NET runtime or Windows 10.
    you don't have the target pack for .NET Framework 4 installed.
    When you opened the solution you will have got a dialog like this:
    and the option to download the target pack.

    But .NET Framework 4.0 is no longer supported, so you need to target a newer version anyway (4.6.2 or higher).

    0 comments No comments

  4. Verschaeve Stijn (Helan) 1 Reputation point

    I have the same issue, but an upgrade is not possible for me. Is there another way?