11

I'm trying to copy a bunch of files from a specific folder into the root of a nuget package. Here's how it looks in my nuspec file:

<files>
  <file src="dist/product1/**/*.*" />
</files>

I want the files under dist/product1 be copied to root of nuget package but instead all files go to dist/product1 folder in nuget file, meaning it preserves the folder structure. I tried many variations. Any ideas?

4

1 回答 1

17

使用 NuGet 包资源管理器,我发现我可以使用以下语法。

<files>
  <file src="dist\product1\**\*.*" target="" />
</files>
于 2015-03-27T00:28:15.013 回答