在Web部署期间跳过文件夹覆盖

时间:2019-04-29 02:43:02

标签: asp.net msdeploy webdeploy

我的wpp.targets文件中有正在运行的MS部署跳过动作

<?xml version="1.0" encoding="utf-8" ?>
<Project ToolsVersion="4.0"
     xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <ItemGroup>
    <MsDeploySkipRules Include="SkipELMAHFolderFiles">
      <SkipAction></SkipAction>
      <ObjectName>filePath</ObjectName>
      <AbsolutePath>$(_DestinationContentPath)\\photos\\.*</AbsolutePath>
      <Apply>Destination</Apply>
      <XPath></XPath>
     </MsDeploySkipRules>
   </ItemGroup>

这可以跳过覆盖服务器上的我的照片文件夹。我为Blog文件夹尝试了相同的代码,但没有成功

    <ItemGroup>
    <MsDeploySkipRules Include="SkipELMAHFolderFiles">
      <SkipAction></SkipAction>
      <ObjectName>filePath</ObjectName>
      <AbsolutePath>$(_DestinationContentPath)\\Blog\\.*</AbsolutePath>
      <Apply>Destination</Apply>
      <XPath></XPath>
     </MsDeploySkipRules>
   </ItemGroup>

</Project>

我做错了什么?

0 个答案:

没有答案