更改UWP应用程序的NET Core版本

编程入门 行业动态 更新时间:2024-10-21 09:31:32
本文介绍了更改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版本

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

发布评论

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

>www.elefans.com

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