VSTS-Xamarin iOS构建-如何选择要使用的单声道版本? [英] VSTS - Xamarin iOS Build - How to choose the mono version to use?

查看:83
本文介绍了VSTS-Xamarin iOS构建-如何选择要使用的单声道版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在VSTS的托管macOS预览队列上构建Xamarin iOS项目. 日志显示它使用单声道5.8.0.但是,队列规格显示已安装mono 5.10.0.

I'm building a Xamarin iOS project on the Hosted macOS Preview queue of VSTS. The log shows that it uses mono 5.8.0. However, the queue specs show that mono 5.10.0 is installed.

问题是如何选择单声道的版本(在已安装的版本中)以在vsts上构建Xamarin ios项目?

The question is how can to choose the version of mono to use (amongst those installed) to build a xamarin ios project on vsts?

更新

在@ valdetero 的答案之后重复以下内容

Itried the following after @valdetero's answer

- task: XamariniOS@2
    displayName: 'Building iOS'
    inputs:
        solutionFile: '**/*.sln'
        configuration: 'Release'
        mdtoolFile: '/Library/Frameworks/Mono.framework/Versions/5.10.1/bin'

但是,我遇到了这个错误:

However, I got that error:

[error]Xamarin.iOS task failed with error Error: Unable to locate executable file: '/Library/Frameworks/Mono.framework/Versions/5.10.1/bin'.

推荐答案

在Xamarin.iOS任务中,打开高级,选中 MSBuild ,然后查看建立工具路径.在此处指定单声道的安装版本.我将其用于一个旧项目,在该项目中我无法使用Mono 5进行构建.这是我的包装盒中的内容:

In your Xamarin.iOS task, open Advanced, check MSBuild, and look at build tool path. Specify an installed version of mono here. I used this for an old project where I can't build it with Mono 5. Here's what I have in the box:

/Library/Frameworks/Mono.framework/Versions/ 4.8.1 /bin

/Library/Frameworks/Mono.framework/Versions/4.8.1/bin

将整个路径放在框中.

这篇关于VSTS-Xamarin iOS构建-如何选择要使用的单声道版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆