更改 UWP 应用程序的 NET Core 版本 [英] Change NET Core version for UWP application

查看:37
本文介绍了更改 UWP 应用程序的 NET Core 版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于 UWP 应用程序,我需要使用 ComponentModel.TypeDescriptor 类中的方法.添加nuget包System.ComponentModel.TypeConverter后,这个类是可用的,但只有一个可用的函数.这样做的原因是项目引用程序集来自 netstandard1.0 目录,而不是来自完全实现类的 netstandard1.5 目录.有什么方法可以更改项目配置,以便引用 netstandard1.5 中的库?或者可能删除对 Microsoft.NETCore.UniversalWindowsPlatform 包的整个引用,并将其替换为对特定 dll 的引用?

For UWP application I need to use methods from ComponentModel.TypeDescriptor class. After adding nuget package System.ComponentModel.TypeConverter, this class is available, but there is just only one available function. The reason for this is that project reference assembly from netstandard1.0 directory, than from netstandard1.5 directory where is fully implemented class. Is there any way to change project configuration that libraries from netstandard1.5 will be referenced ? or maybe drop whole reference to Microsoft.NETCore.UniversalWindowsPlatform package and replace it with references to particular dlls ?

我问如何引用特定的 dll,或用对 dll 的引用替换包.而不是如何针对整个其他框架.

I ask how to reference particular dll, or replacing package with references to dlls. than how to target whole other framework.

推荐答案

Universal Windows Platform (UWP) 目前不支持 .NET Standard Library 1.5.

Universal Windows Platform (UWP) does not support .NET Standard Library 1.5 for now.

表单

所以现在在 UWP 中,我们不能使用构建在 .NET Standard Library 版本 1.5 之上的 API.但是在下一个版本的 UWP 中,它将支持 .NET Standard 2.0,那么您应该可以使用完全实现的类.

So now in UWP, we can't use APIs that build on top of .NET Standard Library versions 1.5. However in the next version of UWP, it will support .NET Standard 2.0, then you should be able to use the fully implemented class.

我们将发布 .NET Core、Xamarin 和 UWP 的更新版本,这些版本将添加支持 .NET Standard 2.0 所需的所有 API.

We’ll ship updated versions of .NET Core, Xamarin, and UWP that will add all the necessary APIs for supporting .NET Standard 2.0.

有关详细信息,请参阅介绍 .NET 标准.

For more info, please see Introducing .NET Standard.

这篇关于更改 UWP 应用程序的 NET Core 版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆