Visual studio .net problem

Денис Швацкий 1 Reputation point
2022-02-01T08:49:24.373+00:00

Hello.
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?

170151-36ed8b04-3094-4fd5-b6c5-e8e0d3f2662e.jpg

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
    2022-02-21T17:00:29.77+00:00

    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
    2022-02-01T09:34:57.93+00:00

    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
    2022-02-02T14:24:03.77+00:00

    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:
    170612-image.png
    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).
    microsoft-net-framework

    0 comments No comments

  4. Verschaeve Stijn (Helan) 1 Reputation point
    2022-05-23T08:34:23.477+00:00

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