macos - 是否可以使用 TFS 在线恢复 Xamarin.iOS 版本的 Nuget 包?

标签 macos xamarin.ios azure-devops tfsbuild

我正在尝试自动化我的 Xamarin.iOS 应用程序的构建过程。我已成功在我的现场 Windows 构建代理上找到了 Xamarin.AndroidUWP 构建工作。

我现在正在尝试使用我的 On Site Mac 构建代理构建 Xamarin.iOS 应用程序。

我已添加恢复 Nuget 包作为此构建定义中的第一步,但仍然收到错误:

MSBuild auto-detection: using msbuild version '4.0' from '/Library/Frameworks/Mono.framework/Versions/4.2.3/lib/mono/4.5'. MsBuild.exe does not exist at '/Library/Frameworks/Mono.framework/Versions/4.2.3/lib/mono/4.5/msbuild.exe'. Error: /usr/local/bin/nuget failed with return code: 1 Return code: 1

但我不确定它在 nuget 安装程序阶段要做什么。

那么这可以做到吗?

最佳答案

非 Windows 操作系统上的 nuget Restore 命令存在一个已知问题:

Restore - Restore works with packages.config and project.json files but will not yet work with *.sln solution files

因此,您可以尝试更新“恢复 Nuget 包”步骤来恢复packages.config 文件而不是解决方案文件。如果仍然不起作用,请尝试将“安装类型”从“恢复”更改为“安装”。

NuGet 3.2

With NuGet 3.2, the following commands have been tested to work:

Config

Delete Help Install List Push SetApiKey Sources Spec

详细信息请参阅此链接:NuGet Compatibility .

关于macos - 是否可以使用 TFS 在线恢复 Xamarin.iOS 版本的 Nuget 包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37115264/

相关文章:

macos - 在 Swift 中将点击处理程序添加到 NSTextField

iphone - 类似于 Monotouch 的 NSDateFormatterMediumStyle 的日期格式?

ios - Monotouch : DataSource. RowSelected() 在 TableView 中选择一行时不触发

tfs - 如何以一些通用格式发布 Flutter 测试结果以显示在 TFS/VSTS 中?

azure - 如何在 Azure DevOps 中查找存储库的分支

python - 由于 Errno 1,无法使用 '--always-copy' 标志设置 virtualenv

objective-c - 为什么在与 USB 转串行适配器通信时此串行通信代码会挂起?

excel - 更改 Excel for Mac 的 VBE 的默认字体大小

ios - 仅在 iOS 7 上向 UITableView 添加 subview 时出现 "Auto Layout still required"错误

azure - 在 Azure 或 AWS 上托管 TFS