cucumber/gherkin — pull request #147 by x97mdr (2011-11-17 02:12:49+00:00)
Title: Publishing NuGet package

Here is the pull request. I checked the nuget commands on my windows box and they work Ok. I created a gherkin-unofficial package on the NuGet gallery here (http://nuget.org/List/Packages/gherkin-unofficial) that I will delete soon.

Setting up the prerequisites
====================

You'll need to download the NuGet Command Line tool from here: http://nuget.codeplex.com/releases/view/58939. Note that the initial download is just a bootstrapper, you'll want to run it once without any commands to get the real NuGet.exe that you will need to deploy (the file size should be 515k or so, compared to the 17k of the bootstrapper)

Directory structure
==============

Because NuGet expects a very specific directory structure when making the package, I created a package directory in the root of the working folder. There is a template .nuspec file in the ikvm directory and this gets copied to the package directory as part of the build process.

Licensing in the package
==================

There are some other things you can customize in the .nuspec file. The full reference is here: http://docs.nuget.org/docs/reference/nuspec-reference. Specifically, you may want to add a link to the license and ask that users accept the license before using the package. I will leave that up to you to decide if you want it or not. If you do, I can put the information in follow-up pull request.

Error Checking
===========

I put a minimum of error checking in the rake script ... it's totally going to work the first time, right!? ;) Seriously, though. I figured if something goes wrong with NuGet it's better to let the exception bubble up as there isn't a whole lot we can do about it.

Final Words
=========

I hope I didn't miss anything because it was near impossible for me to test on my Ubuntu VM. Let me know how it goes for you. My biggest worry is NuGet.exe not playing nicely with your installation of mono which could be painful. If I can be of more help, please let me know.