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

[Net][NETSDK120]warning NETSDK1206 #1205

Open
BaY1251 opened this issue Dec 12, 2023 · 3 comments
Open

[Net][NETSDK120]warning NETSDK1206 #1205

BaY1251 opened this issue Dec 12, 2023 · 3 comments

Comments

@BaY1251
Copy link

BaY1251 commented Dec 12, 2023

Building with Net8 , a warning show.

warning NETSDK1206: 找到了特定于版本或特定于发行版的运行时标识符: alpine-x64。受影响的库: SQLitePCLRaw.lib.e_sqlite3。在 .NET 8.0 及更高版本中,默认情况下找不到特定于版本和特定于发行版的运行时标识符的资产。有关详细信息,请参阅 https://aka.ms/dotnet/rid-usage。

@marwalsch
Copy link

marwalsch commented Dec 18, 2023

I second this:

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 alpine-x64 RID is deprecated and should be removed.

@jonekdahl
Copy link

I also ran into this issue when updating an app to .NET 8. I worked around it by overriding the version of SQLitePCLRaw.bundle_green.

This is what I have in my fsproj file now, and I don't see any warnings:

    <PackageReference Include="sqlite-net-pcl" Version="1.9.141-beta" />
    <!-- Override SQLitePCLRaw.bundle_green version, use newer version that doesn't produce warnings on .NET 8 -->
    <!-- https://github.com/praeclarum/sqlite-net/issues/1205 -->
    <PackageReference Include="SQLitePCLRaw.bundle_green" Version="2.1.7" />

It would be nice if sqlite-net-pcl could update this dependency so this override wouldn't be needed.

@BaY1251
Copy link
Author

BaY1251 commented Jan 5, 2024

Thank you!
I compared two versions of the code, There is almost no difference. So using 1.8 is enough

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

3 participants