msbuild FileSysExcludeFiles

<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121. 
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <WebPublishMethod>FileSystem</WebPublishMethod>
    <SiteUrlToLaunchAfterPublish />
    <publishUrl>C:\Temp\publish\01</publishUrl>
    <DeleteExistingFiles>False</DeleteExistingFiles>
    <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
    <LastUsedPlatform>Any CPU</LastUsedPlatform>
    <ExcludeApp_Data>False</ExcludeApp_Data>
  </PropertyGroup>
  <ItemGroup>
    <ExcludeFromPackageFiles Include="$(MSBuildProjectDirectory)\Files-to-exclude\**\*">
      <FromTarget>pubxml</FromTarget>
    </ExcludeFromPackageFiles>
    <ExcludeFromPackageFiles Include="$(MSBuildProjectDirectory)\bin\**\*">
      <FromTarget>pubxml</FromTarget>
    </ExcludeFromPackageFiles>
    <ExcludeFromPackageFiles Include="$(MSBuildProjectDirectory)\Web.config">
      <FromTarget>pubxml</FromTarget>
    </ExcludeFromPackageFiles>
  </ItemGroup>
</Project>

 

posted @ 2016-08-16 15:08  shiningrise  阅读(186)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css