1
Vote

When packing a nuget package, folders starting with dot are ignored

description

When trying to put a folder that starts with a dot '.' in the folder name, the folder does not get picked up by nuget.exe and no error or warning messages are displayed.
For example
<file src="Contracts.NETFramework\v4.0*." target="tools\Contracts.NETFramework\v4.0\" />
This line does not put anything in the tools\Contracts folder inside the package. Neither does
<file src="Contracts*
*.*" target="tools\Contracts\" />

Workaround:
Apparently it works if you do it like this:
<file src="Contracts*NETFramework\v4.0*.*" target="tools\Contracts.NETFramework\v4.0\" />
So instead of the dot at the beginning of the file name, put a star '*'.

comments

endrih wrote Oct 29, 2015 at 12:29 PM

I forgot to mention that Nuget version is: 2.8.60717.93

ferventcoder wrote Aug 11, 2016 at 4:16 AM