1

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.

shA.t
  • 16,580
  • 5
  • 54
  • 111
Shubh Rocks Goel
  • 519
  • 1
  • 6
  • 17
  • Does it build from the command line? Do you have any environment variables which refer to part of the first path? – Jon Skeet Apr 03 '18 at 06:07
  • https://stackoverflow.com/questions/38124900/microsoft-dotnet-web-targets-missing-after-installing-net-core-rtm could this be helpful..?? – Himanshu Bansal Apr 03 '18 at 06:09
  • Does it build from the command line? Yes we use dotnet restore (This is where actual error occurs) Do you have any environment variables which refer to part of the first path? In my knowledge No – Shubh Rocks Goel Apr 03 '18 at 06:19

0 Answers0