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

查看:211
本文介绍了更改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.

推荐答案

通用Windows平台(UWP)目前不支持.NET标准库1.5。

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

表格

因此,现在在UWP中,我们不能使用基于.NET标准库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天全站免登陆