[MonoDevelop] nuget not found

Matt Ward ward.matt at gmail.com
Tue Jun 16 13:20:09 UTC 2015


Recently MonoDevelop switched to using the Json.NET NuGet package so make
now tries to restore NuGet packages before building.

nuget should be available in the mono-nuget package on Linux. On the Mac
recent versions of Mono ship with nuget.

Otherwise you can build nuget from source and then install it. The source
code for NuGet is available from:

    https://github.com/mono/nuget/tree/2.8.5-for-mono

If you do not want to build it from source there are NuGet binaries
available from:

    https://github.com/mono/nuget-binary

Then you can setup a /usr/bin/nuget script something like following,
replacing the paths as needed:

    #!/bin/sh
    exec /full/path/to/mono $MONO_OPTIONS$ /full/path/to/nuget/NuGet.exe
"$@"

On 16 June 2015 at 13:40, Matt Calder <mvcalder at gmail.com> wrote:

> I am building mono-develop from git. I build it fairly regularly (~ once a
> month). Last week or so, I started getting this error (nuget: command not
> found) right out of the gate:
>
> calder at pharos:~/tmp/monodevelop$ make
> if test -d ".git"; then \
>         git submodule update --init --recursive || exit 1; \
>     fi
> make[1]: Entering directory `/home/calder/tmp/monodevelop/main'
> Making all in external
> make[2]: Entering directory `/home/calder/tmp/monodevelop/main/external'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/home/calder/tmp/monodevelop/main/external'
> Making all in .
> make[2]: Entering directory `/home/calder/tmp/monodevelop/main'
> touch vcrevision
> nuget restore
> /bin/bash: nuget: command not found
> make[2]: *** [restore-packages] Error 127
> make[2]: Leaving directory `/home/calder/tmp/monodevelop/main'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/calder/tmp/monodevelop/main'
> make: *** [all-recursive] Error 1
>
> Does anyone have a suggestion on how to fix this?
>
> Matt
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20150616/88783f46/attachment.html>


More information about the Monodevelop-list mailing list