Change NET Core version for UWP application

こ雲淡風輕ζ 提交于 2019-12-25 08:06:55

问题


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 ?


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


回答1:


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

Form .NET Platforms Support, we can see the highest version of .NET Standard that UWP supports now is .NET Standard Library 1.4.

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.

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

For more info, please see Introducing .NET Standard.



来源:https://stackoverflow.com/questions/40577995/change-net-core-version-for-uwp-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!