Azure Package / Publish Error

I recently upgraded the Azure Project from Azure SDK 1.6 (Visual Studio 2010) to Azure SDK 2.0 (Visual Studio 2012). The project will be built without errors or warnings on the local computer. I can debug the local machine, but I cannot pack or get the assembly on the build server. The error I get is:

error MSB4057: target "PipelineTransformPhase" does not exist in the project.

I confirmed that the file C: \ Program Files (x86) \ MSBuild \ Microsoft \ VisualStudio \ v11.0 \ WebApplications \ Microsoft.WebApplications.targets exists locally and on the build server.

The original project pointed to the path \ v10.0 \, and I manually changed it to the path \ v11.0 \, trying to resolve the error without any luck.

+7
visual-studio-2012 azure
source share
1 answer

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 \".

+11
source share

All Articles