1

i want to add a directory as a target in .nuspec file.i tried :

<file src="bin\banner\*" target="bin\banner\" />

chocolatey didn't elicit any error and created the nupkg file ,but when i download my package from chocolatey and install it,i found that the files in the sub-directories are missing.
i am not very familiar with chocolatey,so Help is appreciated.

1 Answer 1

1

You should be able to use the following:

<file src="bin\banner\**\*" target="bin\banner" />

The inclusion of the ** instructs the packaging process to go into each sub-directroy

1
  • thanks it helped alot
    – Justaus3r
    Commented Feb 10, 2021 at 17:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .