VSTS - Xamarin iOS Build - How to choose the mono version to use?

被刻印的时光 ゝ 提交于 2019-12-11 23:19:06

问题


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

回答1:


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

Put that entire path in the box.



来源:https://stackoverflow.com/questions/51091175/vsts-xamarin-ios-build-how-to-choose-the-mono-version-to-use

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!