File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 7
7
installationPath : $(Agent.ToolsDirectory)/dotnet
8
8
- task : CmdLine@2
9
9
condition : eq( variables['Agent.OS'], 'Darwin' )
10
- displayName : ' Select Mono version '
10
+ displayName : ' Use mono '
11
11
inputs :
12
12
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
15
17
echo "##vso[task.setvariable variable=DYLD_FALLBACK_LIBRARY_PATH;]$MONOPREFIX/lib:/lib:/usr/lib:$DYLD_LIBRARY_FALLBACK_PATH"
16
18
echo "##vso[task.setvariable variable=PKG_CONFIG_PATH;]$MONOPREFIX/lib/pkgconfig:$MONOPREFIX/share/pkgconfig:$PKG_CONFIG_PATH"
17
19
echo "##vso[task.setvariable variable=PATH;]$MONOPREFIX/bin:$PATH"
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ private static string GetMsBuildToolPath()
23
23
}
24
24
if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
25
25
{
26
- return "/Library/Frameworks/Mono.framework/Versions/Current/Commands /msbuild" ;
26
+ return "/usr/local/bin /msbuild" ;
27
27
}
28
28
throw new Exception ( "MsBuild not found" ) ;
29
29
}
You can’t perform that action at this time.
0 commit comments