最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论