How to fix: MSBuild error MSB4226: The imported project was not found

0 Comments

  When you get the MSBuild error: “WebService.csproj” (Rebuild target) (1) -> WebService.csproj(193,11): error MSB4226: The imported project “C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VisualStudio\v16.0\WebApplications\Microsoft.WebApplication.targets” was not found. Also, tried to find “WebApplications\Microsoft.WebApplication.targets” in the fallback search