Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alpine-x64 RID warning in .NET 8 when targeting Andorid or iOS #575

Open
marwalsch opened this issue Dec 11, 2023 · 7 comments
Open

alpine-x64 RID warning in .NET 8 when targeting Andorid or iOS #575

marwalsch opened this issue Dec 11, 2023 · 7 comments

Comments

@marwalsch
Copy link

I have Xamarin.Android/Xamarin.iOS projects each referencing SQLitePCLRaw.bundle_green and a .NET 8 class library using sqlite-net-pcl.

After migrating from .NET 6 to .NET 8, the following warning showed up when targeting iOS or Android:

Found version-specific or distribution-specific runtime identifier(s): alpine-x64. Affected libraries: SQLitePCLRaw.lib.e_sqlite3.
In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default.
See https://aka.ms/dotnet/rid-usage for details.

The issue has no impact on functionality whatsoever.

A windows project targeting the same class library produces no such warning.

Possibly related: #543

What version of SQLitePCLRaw are you using?

  • SQLitePCLRaw.bundle_green 2.1.7

What platform are you running on?

  • iPhone 12,14,15 running iOS 16/17
  • Google Pixel 5 (simulated) on API 34/Android 14

What target framework are you building for?

 Installed Workload    Manifest Version       Installation Source
---------------------------------------------------------------------
maui-windows            8.0.3/8.0.100             VS 17.8.34330.188
maccatalyst                17.0.8478/8.0.100      VS 17.8.34330.188
ios                              17.0.8478/8.0.100      VS 17.8.34330.188
android                      34.0.43/8.0.100          VS 17.8.34330.188

Are you using the command line, or an IDE? Which IDE? Which version of that IDE?

  • Visual Studio 17.8.3

What other packages are you including in your project?

  • The class library uses sqlite-net-pcl 1.8.166
@ericsink
Copy link
Owner

See issue #543

@marwalsch
Copy link
Author

Both the linked and the therein mentioned SDK issue on verbose warnings are marked as closed already. The fact that alpine-x64 is the only platform mentioned in the warning made me assume there's still something wrong. Am I missing something here?

@ericsink
Copy link
Owner

I think the idea is that the alpine-whatever RIDs were deprecated and we're supposed to switch to linux-musl-whatever.

@marwalsch
Copy link
Author

I understand, but since the alpine-x64 RID specifically is mentioned in the warning I wonder whether the RID change fix is perhaps not yet or only partially implemented in the current stable release of the mentioned nuget pakcage(s).

@ericsink
Copy link
Owner

Okay, I think I know what you mean, but...

I just checked sqlitepclraw.lib.e_sqlite3 version 2.1.7 to be sure, as shown in the error message you posted, and it doesn't have alpine-x64 in it.

So I'm still not sure what's going on.

@marwalsch
Copy link
Author

marwalsch commented Dec 18, 2023

sqlite-net-pcl targets SQLitePCLRaw.bundle_green 2.0.4.
So I reckon if the dependency is updated to 2.1.7 the warning should vanish?

Just found there is a related issue already.

@ericsink
Copy link
Owner

But you said at the top you we were already using 2.1.7. That should override whatever sqlite-net-pcl is referencing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants