Xamarin.Forms iOS project not resolving Xamarin's namespaces while Android does & the opposite if updated - Stac

Using .Net 5.0 Xamarin.Forms v5.0.0.2125I re-opened a project I was building with .NET 5.0 in the pa

Using .Net 5.0 / Xamarin.Forms v5.0.0.2125

I re-opened a project I was building with .NET 5.0 in the past and have been trying to bring it back to life, everything works well with android but it doesn't work with iOS only because of the namespace resolution ( the using statements ) and I don't know what to do really since the intellisense isn't even helping. The photos of what is happening are at the bottom of the post.

I've updated the entire solution to the latest of every package and then the problem shifted from iOS to android saying xamarin.forms android project could not find 15 android x assemblies asking me to install 3 nuggets packages:

Xamarin.AndroidX.Legacy.Support.V4
Xamarin.AndroidX.Lifecycle.LiveData
Xamarin.AndroidX.Migration

which if I do says <whichever package I tried to install> does not support framework2.0 ( if doing it from the solution's nuggets )/does not support monoandroid11.0 ( if doing it from the android project's nuggets ).

So my thought was to stay with the "legacy" version of Xamarin.Forms since it was working without any problems in the past but right now I'm lost.

I also tried to increment the version of Xamarin.Forms little by little to see if it would resolve the usings at one point in the iOS project but that didn't work.

Now I don't really know if I should update everything and mess with the android project for which nothing works or not update and mess with the iOS project for which nothing works.

I also tried uninstalling and re-installing Xamarin.Forms from the Solution's packages, tried to dotnet restore, clean build, close VS 2022, open it and rebuild but nothing worked.

Either way, how can I make the iOS project resolve the using statements ?

AppDelegate.cs

A custom iOS file called CustomFrameRenderer.cs

using statements not resolving in another file

iOS project's nugget packages

Android project's nugget packages

Solution project's nugget packages

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744726463a4590209.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信