I've created a package with nugget CLI but can't find a way to install it from the IDE, the Package Manager Console isn't available in the version for Mac, and the nuget CLI tries to retrieve the package from the internet instead of reading the .nupkg file.
I have VS Community for Mac 7.3.3, mono 5.4.1.7 and nuget 4.3.0.4406
This is what I get when trying to install from the CLI
$ nuget install Package.1.0.0.nupkg
Feeds used:
https://api.nuget.org/v3/index.json
GET https://api.nuget.org/v3/registration3-gz-semver2/package.1.0.0.nupkg/index.json
NotFound https://api.nuget.org/v3/registration3-gz-semver2/package.1.0.0.nupkg/index.json 363ms
Unable to find package 'Package.1.0.0.nupkg'
You can add the directory that contains the .nupkg file as a package source in Visual Studio for Mac.
Then you should be able to select the package source for your directory in the Add Packages dialog.
I understand this is an answered question but for the sake of completeness, I'll add my 2 cents. Since the original question talks about nuget CLI, one can use the CLI to add a package source like so:
nuget sources Add -Name "Feed Name" -Source "/path/to/directory"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With