Visual Studio 2010 发布Web项目提示The target "PipelinePreDeployCopyAllFilesToOneFolder" does not exist in the project.解决方法

打开项目文件,查找如下配置节定义:

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />

确认是否符合XML规范,比如下面的错误定义:

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" /> />

可以参考 http://connect.microsoft.com/VisualStudio/feedback/details/504726/msbuild-target-pipelinepredeploycopyallfilestoonefolder-cannot-be-found-when-deploying 的Workarounds。 

原文地址:https://www.cnblogs.com/junchu25/p/2814549.html