xamarin在UWP中形成初始化错误

问题描述 投票:0回答:1

我一直得到这个错误形式存在于uap和平板电脑异常的xamarin表单初始化,确切的errorError CS0433 The type 'Forms' exists in both 'Xamarin.Forms.Platform.UAP, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' and 'Xamarin.Forms.Platform.WinRT.Tablet, Version=1.4.0.0, Culture=neutral, PublicKeyToken=null'。 UWP的版本是目标Windows 10 Fall Creators Update (10.0; Build 16299) min versionWindows 10 Fall Creators Update (10.0; Build 16299)

c# xamarin xamarin.forms uwp
1个回答
0
投票

我正在回答我自己的问题,经过大量阅读并尝试了几个帖子和建议后,我发现我已经将Xamarin.Forms.Windows添加到了UWP项目中。一旦我删除它,我就能够构建它。由于我的项目最初只针对Android平台,从Visual Studio的项目设置窗口(项目类型Shared Project)中选择了Visual C#->Cross-Platform,然后在Windows Universal Blank App上添加了Windows来支持/测试/调试(添加了此插件用于测试Windows Ui功能)。因为我有Xamarin.FormsXamarin.Forms.Windows它抱怨。

© www.soinside.com 2019 - 2024. All rights reserved.