发布站点提示PipelinePreDeployCopyAllFilesToOneFolder

今天发布Web项目时 遇到问题 提示如下:

该项目中不存在目标“PipelinePreDeployCopyAllFilesToOneFolder”。    X:\xxx\xxx\A.csproj        0        0   A

用记事本打开出错的项目文件(A.csproj).

末尾

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="'$(Solutions.VSVersion)' == '10.0'" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="'$(Solutions.VSVersion)' == '9.0'" />
  <!--<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />-->

修改为

<!--<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="'$(Solutions.VSVersion)' == '10.0'" />
  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="'$(Solutions.VSVersion)' == '9.0'" />-->
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />

通过。

 

我这里补充一下,我自己用的时候没有注释掉之前的两行也行。

你可能感兴趣的:(发布站点提示PipelinePreDeployCopyAllFilesToOneFolder)