【问题标题】:Delete folders from the publish output on an ASP.NET Core 1.1 project从 ASP.NET Core 1.1 项目的发布输出中删除文件夹
【发布时间】:2017-04-06 02:24:17
【问题描述】:

我有一个 ASP.NET Core 1.1 项目,csproj 文件中有以下内容:

<ItemGroup>
  <Compile Include="**\*.cs" />   
  <EmbeddedResource Include="**\*.resx" />       
</ItemGroup>

项目中包含的其中一个 Nuget 包向发布输出添加了一些本地化文件夹,例如:'en'、'pt'、'fr'、...

我需要从发布文件夹中删除这些文件夹。

我该怎么做?

【问题讨论】:

    标签: asp.net-core


    【解决方案1】:

    我相信您想要的是使用一个或多个使用 Exclude 属性的 None 元素,例如&lt;None Exclude="en\**\*;pt\**\*;fr\**\*"/&gt; 您还可以使用 Folder 元素和 Exclude 元素,例如Folder Exclude="en; pt;fr"/&gt;.

    enter link description here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多