[英]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.