UWP - Targeted .NET version?

最后都变了- 提交于 2019-12-07 00:33:20

问题


I was always able to set the target framework version for regular .NET projects. In a UWP app I can only set the "Windows 10 build version".

How do they relate to the .NET (core? native?) platform versions?


回答1:


UWP doesn't target a NET framework version, but it targets an SDK version, you can change the sdk version in project properties:

You can also set the minimum target version.

Furthermore, since UWP .NET Project (C# or Visual basic) is based on .NET Core you can upgrade (or downgrade) the .NET Core version through .nuget:




回答2:


UWP is a set of APIs (just like any .NET). There are different APIs available depending on the API contract, which is connected to the official builds of Windows releases. Those numbers aren't the same - currently Microsoft marked each Windows 10 official update as a new major version of API contract, so latest added APIs are marked with 3.0.



来源:https://stackoverflow.com/questions/39838612/uwp-targeted-net-version

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