nuget – Create NuGet packages on macOS and Linux · Thorsten Hans’ blog

Spread the love


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.

I’ve used grunt-nuget for building the NuGet packages for ShareCoffee from within my GruntJS tasks.

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.

Most other grunt-tasks are modifying all the paths depending on your environment.

So you’ve to provide the path in the following form for files.


   src="readme.txt" target="" />
   src="dist/**.*" target="content/Scripts/ShareCoffee" />


Share this content:

I am a passionate blogger with extensive experience in web design. As a seasoned YouTube SEO expert, I have helped numerous creators optimize their content for maximum visibility.

Leave a Comment