How to install local NuGet package (.nupkg) from Visual Studio Community for Mac?

You can add the directory that contains the .nupkg file as a package source in Visual Studio for Mac.

  1. Select Preferences from the main menu.
  2. Open NuGet - Sources in the Preferences dialog.
  3. Click the Add button.
  4. In the Add Package Source dialog that opens click the Browse button.
  5. Find the directory with your .nupkg file then click the Open button.
  6. Change the Name of the package source if you want to.
  7. Then click the Add Source button.

Then you should be able to select the package source for your directory in the Add Packages dialog.