While running a dotnet core 1.1.8 project, my build is failing because it is searching for Microsoft.Application.targets in
C:\ProgramFiles\dotnet\sdk\1.1.8\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets
but the actual file exists at
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\WebApplications\Microsoft.WebApplication.targets
Normally it should be looking into the 2nd path, but I am confused why it is looking in wrong path.
Please help.