Firstly, as seen here:
NuGet requires Mono > 3.x.
My distro packaged 2.x, so I downloaded the latest source for Mono:
However I ran into the issue seen here:
So, I grabbed the latest mono source from git. That compiled and installed cleanly.
Now trying to build nuget, I ran into expected issues with test cases not passing. Editing build.sh:
-xbuild Build/Build.proj /p:Configuration="Mono Release" /t:GoMono
+xbuild Build/Build.proj /p:Configuration="Mono Release" /t:GoMonoNoTests
To not run tests made the build complete successfully.
nuget install worked great
nuget spec <assembly> worked, but the resulting nuspec was missing a trailing newline.
nuget pack worked, except that colored warning lines were corrupted. Setting TERM=dumb worked around this issue. Maybe a --no-color option is in order.
nuget push worked correctly.
I did not run into many of the issues reported in the issue tracker. Example:
patch to add a trailing newline to .nuspec:
From 674689f82af34703131d6af333c272a082db53fa Mon Sep 17 00:00:00 2001
From: Jeff Mendoza <firstname.lastname@example.org>
Date: Fri, 10 May 2013 17:05:03 -0700
Subject: [PATCH] Add trailing newline to nuget spec output.
src/Core/Authoring/Manifest.cs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/Core/Authoring/Manifest.cs b/src/Core/Authoring/Manifest.cs
index 2d022d6..5882b0d 100644
@@ -74,6 +74,9 @@ namespace NuGet
// Need to force the namespace here again as the default in order to get the XML output clean
var serializer = new XmlSerializer(typeof(Manifest), schemaNamespace);
serializer.Serialize(stream, this, ns);
+ var sr = new StreamWriter(stream);
public static Manifest ReadFrom(Stream stream, bool validateSchema)