Nuget忽略复制内容文件两次

时间:2016-06-10 08:18:20

标签: c# nuget

我正在尝试使用以下结构创建一个nuget包: 内容/部署。

这是我的示例nuspec文件:

<?xml version="1.0"?>
<package >
  <metadata>
    <id>$id$</id>
    <version>$version$</version>
    <title>$title$</title>
    <authors>$author$</authors>
    <owners>$author$</owners>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <description></description>
    <copyright></copyright>
  </metadata>
     <files>
       <file src="$OutputPath$" target="content\Deploy" />
    </files>
</package>

所以基本上我将所有内容从输出目录复制到content \ Deploy中。问题是nuget pack还生成了lib目录,并包含了内容根目录中项目的一些内容文件。有没有办法排除除我指定的文件以外的所有内容? 唯一的内容应该是生成的nuget包中content / deploy内的内容。如何实现?

0 个答案:

没有答案