I accidentally deleted the .NET Framework and now I can not run the project in VS. When opening a project, I get the message:

enter image description here

I chose the second item and went to the site:

enter image description here

I tried to install 4.6 and 4.5. When I install 4.5, it says that there is already a newer version, and installation 4.6 did not give anything.

Here is a list of my installed .NET Framework:

enter image description here

Tell me what I need to install, so that the error is gone?

  • Have you tried the first answer in the dialog box? - etki
  • Yes, I tried. The error window is closed, the project structure is displayed in Solution Explorer, but I cannot open anything from there. WinForms project. Neither form nor code opens - Dima Kozyr
  • Try to force updates for Windows. - mals

2 answers 2

Run Repair for Visual Studio (through installation and removal of programs) should help

  • Thanks, helped - Dima Kozyr

I think that you can try to uninstall all the Framework from the "Uninstall and Install Programs". And then put the new Framework, you can immediately 4.6