From 7c4f7db0270e53527e52931ca966cf83b539fb0f Mon Sep 17 00:00:00 2001 From: Peter Collins Date: Tue, 15 Jun 2021 13:34:43 -0700 Subject: [PATCH] [build] Bump to Mono with MSBuild 16.10 (#848) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- build-tools/automation/azure-pipelines.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-tools/automation/azure-pipelines.yaml b/build-tools/automation/azure-pipelines.yaml index c163b2203..6888adaf8 100644 --- a/build-tools/automation/azure-pipelines.yaml +++ b/build-tools/automation/azure-pipelines.yaml @@ -109,7 +109,7 @@ jobs: - script: > dotnet tool install --global boots && - boots --preview Mono + boots https://download.mono-project.com/archive/6.12.0/macos-10-universal/MonoFramework-MDK-6.12.0.145.macos10.xamarin.universal.pkg displayName: Install Mono - script: make prepare CONFIGURATION=$(Build.Configuration) JI_MAX_JDK=$(MaxJdkVersion)