To fix the problem you need:
NotePad++ And you should follow this simple steps:
Close Visual Studio.
Go to the Backup Folder of your VS version usually in: "C:Users(your
user name)DocumentsVisual Studio (year)Backup Filesyour project or
application name".
Open the last Backup file of your corrupted file, usually the name
format is : "Recovered-month.-day-year-time.(Your File Name).cs" with
NotePad++, and copy the source code.
Go to your corrupted file in the project folder and open it with
NotePad++, Edit => Select All => Past the source code and Save.
Go to windows start list and search for: "Visual Studio Tools" folder,
open it and double click on: "Developer Command Prompt for VS(year)".
Write this two codes in the Developer Command Prompt: "devenv.exe
/setup" and then "devenv /resetskippkgs" .
Open your project.
Note: if this didn't work for you try to do the steps before in this
arrangement:
1) => 2) => 3) => 4) => 7) => 1) => 5) => 6) => 7)
and your problem will be fixed.
It works 100% for me, i hope this will helps you!