Skip to content

Commit 877d6ce

Browse files
committed
(mono) install mono from brew
1 parent 7723f0a commit 877d6ce

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

build/stages/common-steps.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ steps:
77
installationPath: $(Agent.ToolsDirectory)/dotnet
88
- task: CmdLine@2
99
condition: eq( variables['Agent.OS'], 'Darwin' )
10-
displayName: 'Select Mono version'
10+
displayName: 'Use mono'
1111
inputs:
1212
script: |
13-
SYMLINK=5_18_1
14-
MONOPREFIX=/Library/Frameworks/Mono.framework/Versions/$SYMLINK
13+
brew install mono
14+
brew link --overwrite mono
15+
SYMLINK=6.0.0.313
16+
MONOPREFIX=/usr/local/Cellar/mono/$SYMLINK
1517
echo "##vso[task.setvariable variable=DYLD_FALLBACK_LIBRARY_PATH;]$MONOPREFIX/lib:/lib:/usr/lib:$DYLD_LIBRARY_FALLBACK_PATH"
1618
echo "##vso[task.setvariable variable=PKG_CONFIG_PATH;]$MONOPREFIX/lib/pkgconfig:$MONOPREFIX/share/pkgconfig:$PKG_CONFIG_PATH"
1719
echo "##vso[task.setvariable variable=PATH;]$MONOPREFIX/bin:$PATH"

src/GitVersionExe/SpecifiedArgumentRunner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ private static string GetMsBuildToolPath()
2323
}
2424
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
2525
{
26-
return "/Library/Frameworks/Mono.framework/Versions/Current/Commands/msbuild";
26+
return "/usr/local/bin/msbuild";
2727
}
2828
throw new Exception("MsBuild not found");
2929
}

0 commit comments

Comments
 (0)