[Mono-dev] NuGet

Rolf Bjarne Kvinge rolf at xamarin.com
Fri Oct 7 05:20:05 EDT 2011


Hi,

I've tried to make the NuGet commandline client working with mono, and today
I committed the latest fixes which makes the basic operations (spec, pack,
publish/push) work using mono master.

To build NuGet using mono master [1] a couple of minor changes are required
(see attached diff):
* Core: A few "X is not CLS compliant" warnings are shown in mono which
fails the build since NuGet has warnings as errors turned on (so I just
turned those into warnings again).
* CommandLine: NuGet tries to merge the core library into the command line
executable using ILMerge, which obviously isn't available on anywhere but
Windows (I skipped the merging completely, this means you'll have a
NuGet.Core.dll and a NuGet.exe instead of just a NuGet.exe).

So to build NuGet, all you have to do is to get the source, apply the
provided patch, and:

cd nuget/src/Core && xbuild
cd ../CommandLine && xbuild
cd bin/Debug
$ mono NuGet.exe help
NuGet Version: 1.6.0.0
<help message>

I hope this helps if somebody wants to use NuGet :)

For the future we're planning to write a NuGet addin to MonoDevelop (it will
take some time though).

Rolf

[1]: With the fix here: http://bugzilla.xamarin.com/show_bug.cgi?id=983 it
will also build using 2.10.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20111007/5b6c08ec/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mono.patch
Type: application/octet-stream
Size: 1955 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20111007/5b6c08ec/attachment-0001.obj 


More information about the Mono-devel-list mailing list