How to install NuGet package in Mono

Viewed 8411

I´ve installed Mono(version 3.2.8) on my Raspberry Pi 3 to execute a C# program that uploads a text file to SharePoint. The program uses a NuGet package called Microsoft.SharePointOnline.CSOM.

I can execute the program on my Windows Pc but i don´t know how to install that package in Mono to execute it there as well.

Can anyone help me please?

2 Answers

The recent versions of the Mono-environment come with msbuild which can restore the solution's dependencies (with /r or /restore flag):

$ msbuild solution.sln /restore

I used this in the system, where the command whereis nuget returns nothing (that means nuget is not installed)

Related