【发布时间】:2018-10-29 06:14:23
【问题描述】:
我尝试为 Android 和 Windows Phone 创建一个新的 Xamarin.Forms 项目,但遇到两个错误。
首先,我有以下错误:
DEP3321: To deploy this application, your deployment target should be running Windows Universal Runtime version 10.0.16299.0 or higher. You currently are running version 10.0.14393.0. Please update your OS, or change your deployment target to a device with the appropriate version.
我找到了这个错误的解决方案,在一些论坛上,人们说将 TargetMinVersionPlatform 设置为 Windows Universal Runtime 的当前运行版本并将 TargetVersionPlatform 设置为预期的版本应该可以解决该错误。是的,这是真的,但现在我收到另一个错误:
NU1201 Project App3 is not compatible with uap10.0.14393 (UAP,Version=v10.0.14393) / win10-x86. Project App3 supports: netstandard1.6 (.NETStandard,Version=v1.6)
在我做了一些研究之后,我发现这个问题可以通过反向执行我为解决第一个问题所做的所有变通方法来解决。
所以,总而言之,我被困在这两个错误之间。谁能帮帮我?
谢谢!
【问题讨论】:
-
I posted it yesterday in an answer。为手机构建 UWP 应用时,不能使用 Xamarin.Forms 3 和 .net 标准 2.0。您只能在至少 Build 16299 的 PC/Tablet WINdows 10 上使用它们
标签: visual-studio xamarin xamarin.forms uwp xamarin.uwp