Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install NuGet package in Mono

Tags:

nuget

mono

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?

like image 218
Jonas Avatar asked Sep 12 '18 07:09

Jonas


People also ask

How do I install a NuGet package .nupkg file locally?

Menu Tools → Options → Package Manager Click OK. Drop your NuGet package files in that folder. Go to your Project in Solution Explorer, right click and select "Manage NuGet Packages". Select your new package source.


1 Answers

restore command (NuGet CLI)

Downloads and installs any packages missing from the packages folder.

Or

install command (NuGet CLI)

Downloads and installs a package into a project, defaulting to the current folder, using specified package sources.

Examples:

nuget restore mySolution.sln
nuget install Microsoft.SharePointOnline.CSOM
  • Install : https://docs.microsoft.com/en-us/nuget/tools/cli-ref-install
  • Restore: https://docs.microsoft.com/en-us/nuget/tools/cli-ref-restore
like image 88
SushiHangover Avatar answered Sep 28 '22 05:09

SushiHangover