ericsink / SQLitePCL.raw

A Portable Class Library (PCL) for low-level (raw) access to SQLite
Apache License 2.0
512 stars 106 forks source link

net6.0 targeting issue #437

Closed ericsink closed 2 years ago

ericsink commented 2 years ago

3>C:\Users\Robel\source\repos\BibleApp.Maui\BibleApp.Maui\BibleApp.Maui.csproj : warning NU1703: 'SQLitePCLRaw.bundle_e_sqlite3 2.0.4' was resolved as a dependency of 'BibleApp.Maui', but the dependency is using 'Xamarin.iOS' while 'BibleApp.Maui' is using 'net6.0-maccatalyst13.5' as its TargetFramework. There might be compatibility issues when MacCatalyst projects depend on Xamarin.iOS projects. 3>C:\Users\Robel\source\repos\BibleApp.Maui\BibleApp.Maui\BibleApp.Maui.csproj : warning NU1703: 'SQLitePCLRaw.bundle_green 2.0.3' was resolved as a dependency of 'BibleApp.Maui', but the dependency is using 'Xamarin.iOS' while 'BibleApp.Maui' is using 'net6.0-maccatalyst13.5' as its TargetFramework. There might be compatibility issues when MacCatalyst projects depend on Xamarin.iOS projects. 3>C:\Users\Robel\source\repos\BibleApp.Maui\BibleApp.Maui\BibleApp.Maui.csproj : warning NU1703: 'SQLitePCLRaw.core 2.0.4' was resolved as a dependency of 'BibleApp.Maui', but the dependency is using 'Xamarin.iOS' while 'BibleApp.Maui' is using 'net6.0-maccatalyst13.5' as its TargetFramework. There might be compatibility issues when MacCatalyst projects depend on Xamarin.iOS projects. 3>C:\Users\Robel\source\repos\BibleApp.Maui\BibleApp.Maui\BibleApp.Maui.csproj : warning NU1703: 'SQLitePCLRaw.lib.e_sqlite3.ios 2.0.4' was resolved as a dependency of 'BibleApp.Maui', but the dependency is using 'Xamarin.iOS' while 'BibleApp.Maui' is using 'net6.0-maccatalyst13.5' as its TargetFramework. There might be compatibility issues when MacCatalyst projects depend on Xamarin.iOS projects. 3>C:\Users\Robel\source\repos\BibleApp.Maui\BibleApp.Maui\BibleApp.Maui.csproj : warning NU1703: 'SQLitePCLRaw.provider.dynamic_cdecl 2.0.3' was resolved as a dependency of 'BibleApp.Maui', but the dependency is using 'Xamarin.iOS' while 'BibleApp.Maui' is using 'net6.0-maccatalyst13.5' as its TargetFramework. There might be compatibility issues when MacCatalyst projects depend on Xamarin.iOS projects. 3>C:\Users\Robel\source\repos\BibleApp.Maui\BibleApp.Maui\BibleApp.Maui.csproj : warning NU1703: 'SQLitePCLRaw.provider.internal 2.0.4' was resolved as a dependency of 'BibleApp.Maui', but the dependency is using 'Xamarin.iOS' while 'BibleApp.Maui' is using 'net6.0-maccatalyst13.5' as its TargetFramework. There might be compatibility issues when MacCatalyst projects depend on Xamarin.iOS projects.

Originally posted by @nextcodelab in https://github.com/praeclarum/sqlite-net/issues/1056

shanoaice commented 2 years ago

Still having a similar issue when targeting net6.0 on Windows:

Could not detect any platforms from 'net6.0-windows10' in 'C:\Users\Shanoa\.nuget\packages\sqlitepclraw.provider.e_sqlite3\2.0.7\lib\net6.0-windows10\SQLitePCLRaw.provider.e_sqlite3.dll', please tell the package authors
ericsink commented 2 years ago

The report by @shanoaice might be related, as it also involves net6.0-workload style TFMs, which are a likely source of trouble for the current SQLitePCLRaw release. But I do note that the report above involves maccatalyst and iOS things, whereas the second one is net6.0-windows, which is a bit more surprising as a source of problems. More attention on this area is needed.

shanoaice commented 2 years ago

@ericsink I find it quite interesting that after inspecting the NuGet package SQLitePCLRaw.provider.e_sqlite3, I do see an assembly under the folder lib/net6.0-windows10 which resembles an assembly targeting net6.0-windows10, though I did not see the corresponding library in SQLitePCLRaw.lib.e_sqlite3: 图片 图片

ericsink commented 2 years ago

Version 2.1.0 is now on nuget and should address net6.0-workload targeting issues.