我已经使用nugget CLI创建了一个包但无法找到从IDE安装它的方法,但是在Mac版本中没有包管理器控制台,并且nuget CLI尝试从Internet检索包读取.nupkg文件。
我有VS Community for Mac 7.3.3,mono 5.4.1.7和nuget 4.3.0.4406
这是我尝试从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'
您可以在Visual Studio for Mac中将包含.nupkg文件的目录添加为包源。
然后,您应该能够在“添加包”对话框中选择目录的包源。
我知道这是一个已回答的问题,但为了完整起见,我将加上我的2美分。由于最初的问题涉及nuget CLI,因此可以使用CLI添加包源,如下所示:
nuget sources Add -Name "Feed Name" -Source "/path/to/directory"