diff --git a/src/Xamarin.Android.Build.Tasks/Tasks/BuildArchive.cs b/src/Xamarin.Android.Build.Tasks/Tasks/BuildArchive.cs index d1fd2af0f67..4ab4998de95 100644 --- a/src/Xamarin.Android.Build.Tasks/Tasks/BuildArchive.cs +++ b/src/Xamarin.Android.Build.Tasks/Tasks/BuildArchive.cs @@ -220,8 +220,8 @@ bool ShouldFallbackToLibZipSharp () // Always fallback on .NET Framework var frameworkDescription = RuntimeInformation.FrameworkDescription; Log.LogDebugMessage ($"RuntimeInformation.FrameworkDescription: {frameworkDescription}"); - if (frameworkDescription != ".NET") { - Log.LogDebugMessage ("Falling back to LibZipSharp because we are *not* running on .NET 6+."); + if (Environment.Version.Major < 6) { + Log.LogDebugMessage ($"Falling back to LibZipSharp because we are *not* running on .NET 6+, Environment.Version.Major: {Environment.Version.Major}"); return true; }