The fix is simple.
In Unity, go to the Edit=>Preference and then in that window click on the External Tools tab, and click Regenerate Project Files:
This happens when you upgrade Visual Studio.