Skip to content

Commit 7c4f7db

Browse files
authored
[build] Bump to Mono with MSBuild 16.10 (#848)
We've been seeing a NuGet restore error when running `make prepare` on a macOS systems with .NET 6 Preview 4 (or greater) installed: Restoring packages for /Users/peter/source/java.interop/tools/logcat-parse/logcat-parse.csproj... NU1202: Package Mono.CSharp 4.0.0.143 is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Package Mono.CSharp 4.0.0.143 supports: net45 (.NETFramework,Version=v4.5) … Errors in /Users/peter/source/java.interop/tools/logcat-parse/logcat-parse.csproj NU1202: Package Mono.CSharp 4.0.0.143 is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Package Mono.CSharp 4.0.0.143 supports: net45 (.NETFramework,Version=v4.5) This error does not manifest when restoring or building with older .NET 6 previews. This issue is no longer present in a newer version of Mono 6.12 which includes MSBuild 16.10. Fix the error by provisioning Mono 6.12.0.145.
1 parent 0227cda commit 7c4f7db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-tools/automation/azure-pipelines.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109

110110
- script: >
111111
dotnet tool install --global boots &&
112-
boots --preview Mono
112+
boots https://download.mono-project.com/archive/6.12.0/macos-10-universal/MonoFramework-MDK-6.12.0.145.macos10.xamarin.universal.pkg
113113
displayName: Install Mono
114114
115115
- script: make prepare CONFIGURATION=$(Build.Configuration) JI_MAX_JDK=$(MaxJdkVersion)

0 commit comments

Comments
 (0)