从 UWP 项目引用 .NETStandard 2.0 项目

编程入门 行业动态 更新时间:2024-10-27 18:31:52
本文介绍了从 UWP 项目引用 .NETStandard 2.0 项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在构建一个 Xamarin 应用程序,并且我已经在 .NETStandard 2.0 类库中实现了核心(使用 Xamarin.Forms).它被一个实现平台特定代码的 iOs 和 Android 项目正确引用.

I am building a Xamarin application, and I have implemented the core (using Xamarin.Forms) in a .NETStandard 2.0 class library. It is correctly referenced by an iOs and Android project which implements the platform-specific code.

问题是,为了让我的应用支持UWP,我尝试添加一个UWP项目,当我尝试引用核心项目时,出现以下错误:

The problem is, I tried to add an UWP project in order that my app supports UWP, and when I try to reference the core project, I have the following error:

项目【核心项目】与uap10.0.10586 (UAP,Version=v10.0.10586)/win10-x86-aot不兼容.项目【核心项目】支持:netstandard2.0 (.NETStandard,Version=v2.0)

Project [Core project] is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586) / win10-x86-aot. Project [Core project] supports: netstandard2.0 (.NETStandard,Version=v2.0)

任何见解将不胜感激.

推荐答案

您需要将 Target 和 Minimum 版本都设置为 Windows 10 Fall Creator为您的项目更新 Build 16299.

You need to set both the Target and the Minimum version to Windows 10 Fall Creator Update Build 16299 for your project.

更多推荐

从 UWP 项目引用 .NETStandard 2.0 项目

本文发布于:2023-11-16 10:37:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1603524.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:项目   UWP   NETStandard

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!