Skip to content

EntryPointNotFoundException in libzipSharpNative when multitargeting .NET 8 bindings with .NET 8 P2 #7936

Closed
@jpobst

Description

@jpobst

Context: dotnet/android-libraries#713
Context: https://discord.com/channels/732297728826277939/732297837953679412/1092671665252597800

Testing building AndroidX.sln with all the TargetFrameworks using .NET P2, like this:

<TargetFrameworks>MonoAndroid12.0;net6.0-android;net7.0-android;net8.0-android</TargetFrameworks>

causes the build to fail with:

image

This seems to be related to multi-targeting:

Working TF:

  • MonoAndroid12.0;net6.0-android
  • MonoAndroid12.0;net6.0-android;net7.0-android
  • net8.0-android

Not-working TF:

  • MonoAndroid12.0;net6.0-android;net7.0-android;net8.0-android
  • net8.0-android;MonoAndroid12.0;net6.0-android;net7.0-android

We speculate this may be an issue where an "older" libzipSharpNative is getting loaded from an earlier pack like .NET 6 or .NET 7, and is trying to be used with the .NET 8 Xamarin.LibZipSharp.dll.

Metadata

Metadata

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions