Visual Studio has some bugs to not find install component properly. If you encounter this error, take a following step.
1, Launch Visual Studio Installer.
2, Launch your Solution.
If Visual Studio failed to load projects properly, right-click the project in the Solution Explorer and select “Install Missing Components“.