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

Restore package is broken with last version of visual studio preview (.NET 6 iOS) #467

Closed
jona-1993 opened this issue Jan 21, 2022 · 5 comments

Comments

@jona-1993
Copy link

jona-1993 commented Jan 21, 2022

Hello,

I updated Visual studio 2022 preview to "17.1.0 Preview 3.0" and I can't restore my nuget packages.
This package is broken (each versions):
<PackageReference Include="SQLitePCLRaw.lib.e_sqlcipher.ios" Version="2.0.8-pre20220111224339" />

It need the target "net6.0-ios".

Error NU1202 Package SQLitePCLRaw.lib.e_sqlcipher.ios 2.0.8-pre20220111224339 is not compatible with net6.0-ios15.2 (.NETCoreApp,Version=v6.0). Package SQLitePCLRaw.lib.e_sqlcipher.ios 2.0.8-pre20220111224339 supports: xamarinios10 (Xamarin.iOS,Version=v1.0)

@ericsink
Copy link
Owner

I haven't added support for the new net6 xamarin TFMs. It is definitely time for me to get that done.

@JonWeighell
Copy link

Would this cause the issue I'm having trying to use SQLite on iOS in a MAUI app?

[0:] An error occurred: 'e_sqlite3'. Callstack: ' at SQLitePCL.SQLite3Provider_e_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number()
at SQLitePCL.raw.SetProvider(ISQLite3Provider imp)
at SQLitePCL.Batteries_V2.Init()

@ericsink
Copy link
Owner

ericsink commented Jan 26, 2022

@jweighell That problem looks different. The one at the top happens during package restore. Yours is a failure at runtime. Perhaps you could open a new issue and post full details of your situation?

ericsink added a commit that referenced this issue Jan 28, 2022
…r-helpful package suggested by @jpobst.  change commands in build script to use dotnet build now instead of old desktop msbuild.  as indicated in xamarin/Xamarin.Legacy.Sdk#34 , tvos is not supported, so for now, this commit changes tvos build to net6 without including support for legacy.  none of this is tested yet.
@ericsink
Copy link
Owner

ericsink commented Feb 7, 2022

Preview release 2.1.0-pre20220207221914 has been pushed up to nuget.org. It contains attempted fixes for this issue. Testing feedback would be appreciated.

@jona-1993
Copy link
Author

It's OK now, thank you ;)

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