[UWP]如何确保使用新SDK构建的应用程序不在旧版本系统上调用新API? [英] [UWP] How to make sure the app built with new SDK is not calling new API on old version system?

查看:74
本文介绍了[UWP]如何确保使用新SDK构建的应用程序不在旧版本系统上调用新API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您没有要测试的每个旧版本系统,如何确保使用最新SDK构建的应用不会调用任何新的API /资源 在旧系统上?

If you do not have every old version systems to test, how to make sure the app build with latest SDK is not calling any new API/resource  on old system?

由于您可能不记得每个API或使用哪个SDK时支持的预定义资源,以及 个人开发人员可能没有要测试的每个系统,而系统版本正在增加......

Since you may not remember every API or predefined resource which is supported by which SDK when using it, and individual developer may not have every system to test, while the system version is increasing...

(例如,SDK 16299支持ThemeResource ButtonRevealBorderBrush,但会在15063系统崩溃,开发时没有错误或警告。)

(For example, ThemeResource ButtonRevealBorderBrush is supported by SDK 16299, but will crash on 15063  system, there is no error or warning when developing.)

或者是否有个别开发者为每个系统版本测试其应用程序的免费服务?

Or is there a free service for individual developers to test their apps for every system version?

谢谢。

推荐答案

你还记得当你创建一个UWP项目?立即尝试创建一个;走着瞧吧? VS会询问您要定位的版本以及最低版本。您将无法在最低版本之前的版本中使用任何内容。您
可以假设这是微软已经涵盖的内容。
Do you remember what happens when you create a UWP project? Try creating one right now; see what happens? VS asks you what version to target and what is the minimum version. You won't be able to use anything in versions prior to the minimum version. You can assume that is something that Microsoft has already covered.


这篇关于[UWP]如何确保使用新SDK构建的应用程序不在旧版本系统上调用新API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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