Reputation: 557
I have a Xamarin Native mobile app with Android and IOS projects and some shared projects, which are targeting .NET Standard 2.0
Honestly, I've tried to find any info about possibility to use .NET 5 projects with Xamarin native - but found no concrete statements in official docs.
I've tried to change target framework of my shared projects to net5.0 or netcoreapp3.1 but got an error:
Project SharedPcl is not compatible with monoandroid10.0 (MonoAndroid,Version=v10.0). Project SharedPcl supports: net5.0 (.NETCoreApp,Version=v5.0)
I understand the error message, but maybe I'm missing something? For example, retarget Android and IOS projects (Android targets 10, and IOS targets 10.3).
Thanks and sorry for possibly dumb question :)
Upvotes: 4
Views: 1492
Reputation: 557
According to How to target "Mobile App(Xamarin.Forms)" project to .net 5.0 in VS2019 (Version 16.8.0)? (thaks magicandre1981) it seems that untill .NET 6 we can't use projects, other than .NET Standard in Xamarin
Upvotes: 2