Copy files from a subfolder to root in nuspec

ぃ、小莉子 提交于 2019-12-23 07:27:52

问题


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?


回答1:


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

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


来源:https://stackoverflow.com/questions/29041052/copy-files-from-a-subfolder-to-root-in-nuspec

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!