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 @   shiningrise  阅读(188)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2007-08-16 申请AdSense有什么要求的
2007-08-16 用word2007发布带图片博客windows服务程序
2007-08-16 Windows服务开发相关文章收集
2007-08-16 博客园创业相关文章收集
2007-08-16 淘宝会不会收费
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css
点击右上角即可分享
微信分享提示