I am facing this issue while Continuous Integration from Visual Studio Team Services.
I have followed stackoverflow link: MSBuild target package not found.
- I have installed .net Framework 4.5 on Build server machine.
- Installed web deployment tool too.
- Created "Microsoft\VisualStudio\v14.0" folders in "C:\Program Files(x86)\MSBuild\Microsoft" and pasted "Web" and "WebApplication" folder from DEV machine (C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0) and past into build server machine on newly created folder path i.e C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0
But still I am facing the same issue.
NOTE: I have given configuration details on below stackoverflow lin: Task VSBuild failed. This caused the job to fail.