Fun with Nuget
I recently finished the first release of my 2nd Nuget package which provides a class to convert an ADO.Net DataTable to a list of objects. This is the result of an effort to create a library for the conversion technique outlined in this post.
I've also created a Nuget package to help out with MVC 5 Radio Buttons located here.
This post summarises some things I learned from creating these Nuget packages.
Simplest package
For simply packing a class library targeting a single version of the .Net framework you can simply invoke the Nuget.exe with the path to the .csproj:
.\.nuget\NuGet.exe pack .\Path\To\Project.csproj -Prop Configuration=Release
If your solution doesn't have a copy of the Nuget exe in the .nuget solution folder you can download the exe separately.
This command will create the nuget package in the current directory with the metadata declared in the AssemblyInfo.cs for the project.
Creating a specification
The default nuspec specification file created by calling: