简体   繁体   English

更改每个平台的Xamarin Forms版本-iOS,Android和共享

[英]Change Xamarin Forms version for each platform - iOS, Android & Shared

I have the same error message as this question, causing my Xamarin Forms project to not deploy. 我有与问题相同的错误消息,导致我的Xamarin Forms项目无法部署。 This is because each platform target of my project (iOS, Android and the Shared Platform) is running different versions of Xamarin forms. 这是因为我项目的每个平台目标(iOS,Android和共享平台)都运行不同版本的Xamarin表单。

The answer in the linked question was: 链接问题的答案是:

Solution: 解:

Change in your Core, Droid and IOS project the Xamarin.Forms versions. 在您的Core,Droid和IOS项目中更改Xamarin.Forms版本。 Make sure that all versions are the same. 确保所有版本都相同。

How do I change my Xamarin.Forms versions for each of my target platforms? 如何为每个目标平台更改Xamarin.Forms版本? Here is what my navigation menu looks like: 我的导航菜单如下所示:

在此处输入图片说明

Open your solution in VS expand the packages folder and right click your Xamarin.Forms package. 在VS中打开解决方案,展开“ packages”文件夹,然后右键单击“ Xamarin.Forms”包。 Each .csproj in your .sln should be on the same version if not update update it to the version to match that or just update all of them to the latest XF. 如果不更新,则.sln每个.csproj应该具有相同的版本,请将其更新为与之匹配的版本,或者仅将它们全部更新为最新的XF。

在此处输入图片说明

It will look a bit different if you're on windows, which has the nice package manager, so in that case you can right click on your open solution and go to manage nuget packages for solution. 如果您使用的是Windows(具有不错的软件包管理器),则外观会有所不同,因此在这种情况下,您可以右键单击打开的解决方案,然后管理用于解决方案的nuget软件包。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Xamarin与Android和iOS的图像形成共享项目 - Xamarin forms shared project with images for Android and iOS iOS 15 更新后,iOS 平台中 Xamarin.forms 中的导航栏颜色变化问题 - Navigation bar colour change issue in Xamarin.forms in iOS platform after iOS 15 update Xamarin Forms Webview 在 IOS 平台上禁用缩放 - Xamarin Forms Webview Disable zoom on IOS platform 找不到Xamarin.Forms.Platform.Android.LabelRenderer(xamarin表单)的构造函数 - No constructor found for Xamarin.Forms.Platform.Android.LabelRenderer (xamarin forms) Xamarin.Forms Shared在Android视图中不显示图像,但在iOS视图中显示图像 - Xamarin.Forms Shared is not display image in Android view, but display image in iOS view 无法运行或访问 xamarin xamarin.Forms.Platform.Android - Can't run or access xamarin xamarin.Forms.Platform.Android 如何在 13 - Xamarin Forms 下的 IOS 版本中更改状态栏图标颜色? - How to change status bar icons color in IOS version under 13 - Xamarin Forms? AccessDenied 在 Xamarin.Forms.Platform.iOS.FormsApplicationDelegate OpenUrl - AccessDenied in Xamarin.Forms.Platform.iOS.FormsApplicationDelegate OpenUrl Xamarin Forms在iOS平台上未收到Appcenter推送通知 - Appcenter push notifications not received by Xamarin Forms on iOS platform 移植Xamarin将Android版本移植到Blackberry 10 - Porting Xamarin Forms Android version to Blackberry 10
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM