【问题标题】:Xamarin crashing between two errorsXamarin 在两个错误之间崩溃
【发布时间】: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


【解决方案1】:

作为.NET Standard 文档,netstandard 2.0 可以在 UWP 版本 10.0.16299 上使用。它不能在 UWP 版本 14393 上使用,所以你不能将你的应用目标最小版本更改为 14393。目前,Windows phone 版本是 15254,你不能在 windows phone 上运行 .net standard 2.0。所以解决方案就像@magicandre1981 在他的线程Xamarin.Forms UWP project wont install on windows 10 mobile 上所说的那样@

此外,您还可以尝试直接在 VS 2015 上创建您的 Xamarin 应用目标版本 14393。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-10-26
    • 1970-01-01
    • 2016-09-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多