Use Mono 6.4.0 on macOS
@@ -36,6 +36,20 @@ steps:
packageType: 'sdk'
version: '3.0.100'
+ # Set Mono version on macOS
+ - ${{ if eq(parameters.os, 'macOS') }}:
+ - task: ms-devlabs.utilitytasks.task-Shellpp.Shell++@0
+ displayName: Set Mono Version
+ inputs:
+ type: InlineScript
+ script: |
+ # use Mono 6.4.0 version
+ SYMLINK=6.4.0
+ MONOPREFIX=/Library/Frameworks/Mono.framework/Versions/$SYMLINK
+ echo "##vso[task.setvariable variable=DYLD_FALLBACK_LIBRARY_PATH;]$MONOPREFIX/lib:/lib:/usr/lib:$DYLD_LIBRARY_FALLBACK_PATH"
+ echo "##vso[task.setvariable variable=PKG_CONFIG_PATH;]$MONOPREFIX/lib/pkgconfig:$MONOPREFIX/share/pkgconfig:$PKG_CONFIG_PATH"
+ echo "##vso[task.setvariable variable=PATH;]$MONOPREFIX/bin:$PATH"
+
# Install mono when running on Linux
- ${{ if eq(parameters.os, 'Linux') }}:
- task: ms-devlabs.utilitytasks.task-Shellpp.Shell++@0
@@ -43,7 +57,6 @@ steps:
inputs:
type: InlineScript
script: |
-
# Testing and packaging tools
sudo apt-get -yq install mono-vbnc dos2unix fakeroot
@@ -60,14 +73,6 @@ steps:
inputs:
type: InlineScript
script: |
-
- # use Mono 5.16.1 version
- SYMLINK=5.16.1
- MONOPREFIX=/Library/Frameworks/Mono.framework/Versions/$SYMLINK
- echo "##vso[task.setvariable variable=DYLD_FALLBACK_LIBRARY_PATH;]$MONOPREFIX/lib:/lib:/usr/lib:$DYLD_LIBRARY_FALLBACK_PATH"
- echo "##vso[task.setvariable variable=PKG_CONFIG_PATH;]$MONOPREFIX/lib/pkgconfig:$MONOPREFIX/share/pkgconfig:$PKG_CONFIG_PATH"
- echo "##vso[task.setvariable variable=PATH;]$MONOPREFIX/bin:$PATH"
-
# Dump some info about the tools
mono --version
msbuild /version
