While building ShareCoffee, I recognized that building NuGet packages doesn’t work on macOS or Linux. Today I’d the chance to look again into this issue.
Responsible for the fact that I wasn’t able to create the NuGet packages on MacOS or Linux was the
.nuspec file. To build NuGet packages on other operating systems than Windows systems, you’ve to use Unix paths instead of Windows paths.
grunt-tasks are modifying all the paths depending on your environment.
So you’ve to provide the path in the following form for files.
<files> <file src="readme.txt" target="" /> <file src="dist/**.*" target="content/Scripts/ShareCoffee" /> </files>