I noticed that when a project cannot access the Microsoft.WebApplications.targets file, it usually says: "Target" PipelineTransformPhase "does not exist in the project.
You need to import the Microsoft.WebApplications.targets file into the project. You can do this by adding the following line to your project.
<Import Project="C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets" />
When importing Microsoft.WebApplication.targets files into a project file, make sure that you do not set an explicit condition = "false". I saw a similar error when Microsoft.WebApplication.targets was imported into the project along with Condition = "false".
Another thing to consider when importing Microsoft.WebApplication.targets into a project file is to always make sure that the default variable $ (MSBuildExtensionsPath32) is set to "C: \ Program Files (x86) \ MSBuild \".
Samir dangol
source share