Challenge: I recently cloned one of the project from github for research. However some of the projects were not loading, and also did not give good error to check on. Then I tried loading that particular project in a separate visual studio, and then got below error.
The imported project “C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VisualStudio\v14.0\WebApplications\Microsoft.WebApplication.targets” was not found.
Solution: Upon google I found this post “MS-Build 2017 “Microsoft.WebApplication.targets ” is missing“
However the suggestion did not work in my case and if the suggestion did not work in your case as well then copy all the files from folder “C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VisualStudio\v16.0” and paste into folder “C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0”.
Restart the Visual Studio and load the project.
Hope this helps.