monodevelop - NuGet - 如何在 MonoDevelop/Xamarin Studio 上配置包还原

标签 monodevelop nuget xamarin-studio

阅读Using NuGet without committing packages to source control我明白我应该添加 .nuget文件夹到我的项目以在构建期间启用包还原...并阅读 Prepare a git repo for NuGet我知道我可以删除 NuGet.exeNuGet.config并通过设置 DownloadNuGetExe 让 IDE 自动下载它们至 trueNuGet.targets .

好吧,我有点困惑,因为 1) Xamarin Studio 既不下载 NuGet.exe也不是 NuGet.config ... 和 2) .nuget文件夹根本不是必需的,因为您可以发出命令 还原 NuGet 包 在解决方案资源管理器上,无论如何都会恢复包。

话虽如此,配置的正确方法是什么?包恢复在 Xamarin Studio/MonoDevelop 上?

最佳答案

或者您可以使用 2.7 中的新包还原。赶紧跑

nuget.exe restore <your_solution_file>

恢复解决方案中项目使用的所有包。

http://docs.nuget.org/docs/reference/package-restore详情。

关于monodevelop - NuGet - 如何在 MonoDevelop/Xamarin Studio 上配置包还原,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19072529/

相关文章:

winforms - 将 C#.NET 应用程序从 Windows 迁移到 OSX(Windows 窗体)

c# - 缺少将 Microsoft.IdentityModel.Clients.ActiveDirectory 3.13.9 与 Azure KeyVault C# SDK 结合使用的程序集引用

installation - WiX、TeamCity 和 NuGet 集成指南

c# - Xamarin studio 5.9.7 找不到类型或命名空间名称 'Xamarin'

xamarin - 如何在 iOS 中的 Xamarin 按钮上将图像左对齐并将文本对齐到中心?

android - 无法在 Mac OS X El Capitan 上启动虚拟设备

ios - Mono Boehm vs SGen GC

c# - .NET/Mono 应用程序的 ldd 的等效项

c# - 如何循环遍历 gtk 中的节点 View 行#

jenkins - 如何根据属性使用 JFrog Artifactory REST API 获取最新的 NuGet Artifactory 版本?