Copy files from subfolder to root in nuspec

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

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

I want the files under dist / product1 to be copied to root from the nuget package, but instead all the files go to the dist / product1 folder in the nuget file, that is, it preserves the folder structure. I have tried many options. Any ideas?

+6
source share
1 answer

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

 <files> <file src="dist\product1\**\*.*" target="" /> </files> 
+8
source

Source: https://habr.com/ru/post/983770/


All Articles