Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copy files from a subfolder to root in nuspec

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?

like image 924
Ali B Avatar asked Mar 13 '15 20:03

Ali B


1 Answers

Using NuGet Package Explorer, I found out that I can use the following syntax.

<files>
  <file src="dist\product1\**\*.*" target="" />
</files>
like image 184
Ali B Avatar answered Nov 11 '22 01:11

Ali B