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.
Visual studio .net problem

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?
Windows Forms
Windows 10
Visual Studio
.NET Runtime
-
Tianyu Sun-MSFT 14,896 Reputation points • Microsoft Vendor
2022-02-02T06:12:13.017+00:00 Hello @Денис Швацкий , what kind of project are you going to start(create and develop)? Like what Castorix31 mentioned, did you choose and install the required workloads and components? Besides, please make sure you have updated Windows OS and there is no Windows Update error.
4 answers
Sort by: Most helpful
-
satya karki 961 Reputation points • MVP
2022-02-21T17:00:29.77+00:00 -
Bruno Roda 1 Reputation point
2022-05-18T10:50:03.207+00:00 Hello everyone,
i had the same problem and @satya karki solution worked for me.Cheers
Sign in to commentCastorix31 69,176 Reputation points2022-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
-
Денис Швацкий 1 Reputation point
2022-02-01T09:58:28.377+00:00 I don't see .NET Desktop Development 4.0
i installed .NET framework 4.8 but the problem persistedCastorix31 69,176 Reputation points2022-02-01T10:02:46.847+00:00 There is no ".NET Desktop Development 4.0"
Have you checked ".NET Desktop Development" in the Workloads ?
( +components on the right)Денис Швацкий 1 Reputation point2022-02-02T07:42:05.687+00:00 this is not working.
Installation notes:
.NET Framework 4.5 and later versions replace .NET Framework 4.0. When you install these versions on a system that has .NET Framework 4 installed, the assemblies are replaced.
Could this be a problem?
Castorix31 69,176 Reputation points2022-02-02T08:32:09.063+00:00 You cannot check and install ".NET Desktop Development" ?!
And what is installed ?
commands like :
dotnet --list-sdks
dotnet --list-runtimesДенис Швацкий 1 Reputation point2022-02-03T02:36:12.443+00:00 @Castorix31 sorry.
You uploaded a GIF yesterday. It is not displayed now
Can you repeat the message again?
Sign in to comment
EckiS 806 Reputation points2022-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:
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-framework0 No commentsVerschaeve Stijn (Helan) 1 Reputation point2022-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?-
mr-Pourghorban 1 Reputation point
2022-05-25T04:11:06.39+00:00 hi
you must install .net SDK you needso go to Visual Studio installer -->modify -->individual component -->select the required framework and install it
Sign in to comment -
-
Visual studio was installed after all windows updates
I installed visual studio many times, with standard components, and everything always worked. But not now..
Hi @Денис Швацкий , please try to repair .NET Framework by using Microsoft .NET Framework Repair Tool and check again.
Please read the other answers: this has nothing to do with the framework itself and no need to repair.
Hi @EckiS , thanks for the reminder :) Previously I thought @Денис Швацкий was using a new project, and now I see. So the solution should be retargeting the existing project to a higher version of .NET Framework or creating/using a new project targets higher version of .NET Framework(with the target pack installed).
Sign in to comment