VSTS - Xamarin的iOS建设 - 如何选择单声道版本中使用?(VSTS - Xama

2019-11-04 22:22发布

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.

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

UPDATE

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'.

Answer 1:

在你Xamarin.iOS任务,开高级 ,检查的MSBuild,并期待在构建刀具路径 。 在此处指定单的安装版本。 我用这一个老项目,我无法用单5.建立它下面是我在框中:

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

把那整个路径在框中。



文章来源: VSTS - Xamarin iOS Build - How to choose the mono version to use?