我正在尝试自动化我的 Xamarin.iOS
应用程序的构建过程。我已成功在我的现场 Windows 构建代理上找到了 Xamarin.Android
和 UWP
构建工作。
我现在正在尝试使用我的 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/