我正在使用Visual Studio for Mac。我需要安装一些软件包,但找不到该软件包的管理器控制台。
Visual Studio版本:预览版1(7.0内部版本347)
类似于Xamarin Studio,您必须使用其对话框,
https://developer.xamarin.com/guides/cross-platform/xamarin-studio/nuget_walkthrough/
由于没有跨平台的PowerShell,Xamarin Studio缺少Package Manager Console。在Mac上的Visual Studio中可能要一天。我们将看到。
您可以按照NuGet CLI参考进行安装https://docs.microsoft.com/en-us/nuget/tools/nuget-exe-cli-reference
摘录自该链接的内容为:
macOS / Linux
行为可能因操作系统分布而略有不同。
在shell提示符下执行以下命令:
# Download the latest stable `nuget.exe` to `/usr/local/bin` sudo curl -o /usr/local/bin/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe # Give the file permissions to execute sudo chmod 755 /usr/local/bin/nuget.exe
通过将以下脚本添加到适合您操作系统的文件中来创建别名(通常为
~/.bash_aliases or ~/.bash_profile
:]# Create as alias for nuget alias nuget="mono /usr/local/bin/nuget.exe"
重新加载外壳。输入不带参数的
nuget
以测试安装。 NuGet CLI帮助应该显示。